-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3335 from AgoraIO/4.2.3-hh
4.2.3 hh
- Loading branch information
Showing
22 changed files
with
493 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
dita/RTC-NG/API/api_irtcengine_isfeatureavailableondevice.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_irtcengine_isfeatureavailableondevice"> | ||
<title><ph keyref="isFeatureAvailableOnDevice"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">查询设备是否支持指定进阶功能。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="isFeatureAvailableOnDevice"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public abstract boolean isFeatureAvailableOnDevice(int type);</codeblock> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)isFeatureAvailableOnDevice:(AgoraFeatureType)type;</codeblock> | ||
<codeblock props="cpp unreal bp" outputclass="language-cpp">virtual bool isFeatureAvailableOnDevice(FeatureType type) = 0;</codeblock> | ||
<codeblock props="electron" outputclass="language-typescript"/> | ||
<codeblock props="unity cs" outputclass="language-csharp"/> | ||
<codeblock props="rn" outputclass="language-typescript">abstract isFeatureAvailableOnDevice(type: FeatureType): boolean;</codeblock> | ||
<codeblock props="flutter" outputclass="language-dart">Future<bool> isFeatureAvailableOnDevice(FeatureType type);</codeblock> </p> | ||
</section> | ||
<section id="detailed_desc"> | ||
<title>详情</title> | ||
<dl outputclass="since"> | ||
<dlentry props="native"> | ||
<dt>自从</dt> | ||
<dd>v4.2.3</dd> | ||
</dlentry> | ||
</dl> | ||
<p>查询当前设备能力是否满足虚拟背景、美颜等进阶功能的要求。</p> | ||
</section> | ||
<section id="scenario"> | ||
<title>适用场景</title> | ||
<p>在使用进阶音视频功能前,你可以根据查询结果判断当前设备是否支持这些功能,从而避免在低端设备上开启进阶功能导致性能下降或功能不可用的问题。开发者可以根据 <apiname keyref="isFeatureAvailableOnDevice"/> 的返回值,决定是否显示或启用相应的功能按钮,或者提示用户不支持指定功能。</p> | ||
</section> | ||
<section id="parameters"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry> | ||
<pt>type</pt> | ||
<pd props="cpp apple framework">进阶功能类型,详见 <xref keyref="FeatureType"/>。</pd> | ||
<pd props="android"> | ||
<p>进阶功能类型: | ||
<ul> | ||
<li><ph keyref="VIDEO_VIRTUAL_BACKGROUND" /> (1):虚拟背景功能。</li> | ||
<li><ph keyref="VIDEO_BEAUTY_EFFECT" /> (2):美颜功能。</li> | ||
</ul></p> | ||
</pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values"> | ||
<title>返回值</title> | ||
<ul> | ||
<li><codeph><ph keyref="true" /></codeph>: 设备支持指定进阶功能。</li> | ||
<li><codeph><ph keyref="false" /></codeph>: 设备不支持指定进阶功能。</li> | ||
</ul> </section> | ||
</refbody> | ||
</reference> |
67 changes: 67 additions & 0 deletions
67
dita/RTC-NG/API/api_irtcengineex_enablecontentinspectex.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_irtcengineex_enablecontentinspectex"> | ||
<title><ph keyref="enableContentInspectEx"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">开启/关闭视频截图上传。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="enableContentInspectEx"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public abstract int enableContentInspectEx( | ||
boolean enabled, ContentInspectConfig config, RtcConnection connection);</codeblock> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (int)enableContentInspectEx:(BOOL)enabled config:(AgoraContentInspectConfig* _Nonnull)config connection:(AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(enableContentInspectEx(_:config:connection:));</codeblock> | ||
<codeblock props="cpp unreal bp" outputclass="language-cpp">virtual int enableContentInspectEx(bool enabled, const media::ContentInspectConfig &config, const RtcConnection& connection) = 0;</codeblock> | ||
<codeblock props="electron" outputclass="language-typescript"/> | ||
<codeblock props="unity cs" outputclass="language-csharp"/> | ||
<codeblock props="rn" outputclass="language-typescript">abstract enableContentInspectEx( | ||
enabled: boolean, | ||
config: ContentInspectConfig, | ||
connection: RtcConnection | ||
): number;</codeblock> | ||
<codeblock props="flutter" outputclass="language-dart">Future<void> enableContentInspectEx( | ||
{required bool enabled, | ||
required ContentInspectConfig config, | ||
required RtcConnection connection});</codeblock> </p> | ||
</section> | ||
<section id="detailed_desc"> | ||
<title>详情</title> | ||
<dl outputclass="since"> | ||
<dlentry props="native"> | ||
<dt>自从</dt> | ||
<dd>v4.2.3</dd> | ||
</dlentry> | ||
</dl> | ||
<p>该方法可以对多条视频流截图并上传。开启视频截图上传后,SDK 会根据你在 <xref keyref="ContentInspectConfig"/> 中设置的模块类型和频率对本地用户发送的视频进行截图和上传。截图完成后,声网服务器会以 HTTPS 请求的形式,向你的服务器发送回调通知,并将所有截图发送至你指定的第三方云存储。</p> | ||
<note>调用该方法前,请确保已<xref keyref="ticket-link"/>开通视频截图上传服务。</note> | ||
</section> | ||
<section id="parameters"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry conkeyref="enableContentInspect/enabled"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
<plentry conkeyref="enableContentInspect/config"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
<plentry conkeyref="joinChannelEx/connection"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values"> | ||
<title><ph keyref="return-section-title"/></title> | ||
<p props="flutter">方法成功调用时,无返回值;方法调用失败时,会抛出 <xref keyref="AgoraRtcException"/> 异常,你需要捕获异常并进行处理。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></p> | ||
<ul> | ||
<li props="native unreal bp unity rn electron cs">0: 方法调用成功。</li> | ||
<li>< 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></li> | ||
</ul></section> | ||
</refbody> | ||
</reference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="enum_featuretype"> | ||
<title><ph keyref="FeatureType"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">进阶功能类型。</ph></shortdesc> | ||
<refbody> | ||
<section id="detailed_desc"> | ||
<dl outputclass="since"> | ||
<dlentry props="native"> | ||
<dt>自从</dt> | ||
<dd>v4.2.3</dd> | ||
</dlentry> | ||
</dl> | ||
</section> | ||
<section id="parameters"> | ||
<title>枚举值</title> | ||
<parml> | ||
<plentry> | ||
<pt><ph keyref="VIDEO_VIRTUAL_BACKGROUND"/></pt> | ||
<pd>1: 虚拟背景功能。</pd> | ||
</plentry> | ||
<plentry> | ||
<pt><ph keyref="VIDEO_BEAUTY_EFFECT"/></pt> | ||
<pd>2: 美颜功能。</pd> | ||
</plentry> | ||
</parml> | ||
</section></refbody> | ||
</reference> |
Oops, something went wrong.