Skip to content

Commit

Permalink
Merge pull request #3350 from AgoraIO/auto/sync-cn-proto-to-en-patch-…
Browse files Browse the repository at this point in the history
…1695615060
  • Loading branch information
github-actions[bot] authored Sep 25, 2023
2 parents d7ae1a4 + 2e99560 commit 97fd4be
Show file tree
Hide file tree
Showing 482 changed files with 3,823 additions and 3,827 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_channelmediarelayconfiguration_getdestchannelmediainfos">
<title><ph keyref="getDestChannelMediaInfos"/></title>
<title><ph keyref="getDestChannelMediaInfos" /></title>
<shortdesc id="short"><ph id="shortdesc">Gets the information of the target channel.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="getDestChannelMediaInfos"/>
<indexterm keyref="getDestChannelMediaInfos" />
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java">public Map&lt;String, ChannelMediaInfo> getDestChannelMediaInfos() {
<codeblock props="android" outputclass="language-java">public Map&lt;String, ChannelMediaInfo&gt; getDestChannelMediaInfos() {
return destInfos;
}</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal bp" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript"/>
<codeblock props="unity cs" outputclass="language-csharp"/>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="cpp unreal bp" outputclass="language-cpp" />
<codeblock props="electron" outputclass="language-typescript" />
<codeblock props="unity cs" outputclass="language-csharp" />
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart" />
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="return_values">
<title>Returns</title>
<p>The information of the target channel. See <xref keyref="ChannelMediaInfo"/>.</p>
<p>The information of the target channel. See <xref keyref="ChannelMediaInfo" />.</p>
</section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_channelmediarelayconfiguration_removedestchannelinfo">
<title><ph keyref="removeDestChannelInfo"/></title>
<title><ph keyref="removeDestChannelInfo" /></title>
<shortdesc id="short"><ph id="shortdesc">Deletes the information of target channel.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="removeDestChannelInfo"/>
<indexterm keyref="removeDestChannelInfo" />
</keywords>
</metadata>
</prolog>
Expand All @@ -17,12 +17,12 @@
destInfos.remove(channelName);
}</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName;</codeblock>
<codeblock props="cpp unreal bp" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript"/>
<codeblock props="unity cs" outputclass="language-csharp"/>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="cpp unreal bp" outputclass="language-cpp" />
<codeblock props="electron" outputclass="language-typescript" />
<codeblock props="unity cs" outputclass="language-csharp" />
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart" />
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="parameters">
<title>Parameters</title>
Expand All @@ -34,9 +34,9 @@
</parml> </section>
<section id="return_values" props="ios mac">
<ul>
<li><codeph><ph keyref="true"/></codeph>: Success.</li>
<li><codeph><ph keyref="false"/></codeph>: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
<li><codeph><ph keyref="true" /></codeph>: Success.</li>
<li><codeph><ph keyref="false" /></codeph>: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
</ul>
</section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_channelmediarelayconfiguration_setdestchannelinfo">
<title><ph keyref="setDestChannelInfo"/></title>
<title><ph keyref="setDestChannelInfo" /></title>
<shortdesc id="short"><ph id="shortdesc">Sets the information of the target channel.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="setDestChannelInfo"/>
<indexterm keyref="setDestChannelInfo" />
</keywords>
</metadata>
</prolog>
Expand All @@ -18,12 +18,12 @@
}</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)setDestinationInfo:(AgoraChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName;
</codeblock>
<codeblock props="cpp unreal bp" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript"/>
<codeblock props="unity cs" outputclass="language-csharp"/>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="cpp unreal bp" outputclass="language-cpp" />
<codeblock props="electron" outputclass="language-typescript" />
<codeblock props="unity cs" outputclass="language-csharp" />
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart" />
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="parameters">
<title>Parameters</title>
Expand All @@ -36,10 +36,10 @@
<pt props="android">destInfo</pt>
<pt props="ios mac">destinationInfo</pt>
<pd>
<p>The information of the target channel. See <apiname keyref="ChannelMediaInfo"/>. It contains the following members:<ul>
<p>The information of the target channel. See <apiname keyref="ChannelMediaInfo" />. It contains the following members:<ul>
<li><parmname>channelName</parmname>: The name of the target channel.</li>
<li><parmname>token</parmname>: The <parmname>token</parmname> for joining the target channel. This token is generated with the <parmname>channelName</parmname> and <parmname>uid</parmname> you set in <parmname>destInfos</parmname>.<ul>
<li>If you have not enabled the App Certificate, set this parameter as the default value <codeph><ph keyref="NULL"/></codeph>, which means the SDK applies the App ID.</li>
<li>If you have not enabled the App Certificate, set this parameter as the default value <codeph><ph keyref="NULL" /></codeph>, which means the SDK applies the App ID.</li>
<li>If you have enabled the App Certificate, you must use the <parmname>token</parmname> generated with the <parmname>channelName</parmname> and <parmname>uid</parmname>.</li>
</ul> <note type="attention"><p>If the token of any target channel expires, the whole media relay stops; hence Agora recommends that you specify the same expiration time for the tokens of all the target channels.</p></note></li>
<li><parmname>uid</parmname>: The unique user ID to identify the relay stream in the target channel. The value ranges from 0 to (2 <sup>32</sup>-1). To avoid user ID conflicts, this user ID must be different from any other user ID in the target channel. The default value is 0, which means the SDK generates a random user ID.</li>
Expand All @@ -49,8 +49,8 @@
</parml> </section>
<section id="return_values" props="ios mac">
<ul>
<li><codeph><ph keyref="true"/></codeph>: Success.</li>
<li><codeph><ph keyref="false"/></codeph>: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
<li><codeph><ph keyref="true" /></codeph>: Success.</li>
<li><codeph><ph keyref="false" /></codeph>: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
</ul>
</section>
</refbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<codeblock props="unity cs" outputclass="language-csharp">public abstract string GetDevice();</codeblock>
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart">Future&lt;String&gt; getDevice();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="parameters" props="cpp unreal bp">
<title>Parameters</title>
Expand All @@ -42,7 +42,7 @@
<title>Returns</title>
<ul props="cpp unreal bp">
<li>0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
</ul>
<p props="unity flutter electron rn cs">Retrieves the volume of the audio recording device.</p>
</section>
Expand Down
10 changes: 5 additions & 5 deletions en-US/dita/RTC-NG/API/api_iaudiodevicecollection_setdevice.dita
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<codeblock props="unity cs" outputclass="language-csharp">public abstract int SetDevice(string deviceIdUTF8);</codeblock>
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart">Future&lt;void&gt; setDevice(String deviceIdUTF8);</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand All @@ -35,11 +35,11 @@
</plentry>
</parml> </section>
<section id="return_values">
<title><ph keyref="return-section-title"/></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException"/> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></p>
<title><ph keyref="return-section-title" /></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException" /> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></p>
<ul>
<li props="native unreal bp electron unity rn cs">0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
</ul> </section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<codeblock props="unity cs" outputclass="language-csharp">public abstract DeviceInfo[] EnumeratePlaybackDevices();</codeblock>
<codeblock props="rn" outputclass="language-typescript">abstract enumeratePlaybackDevices(): AudioDeviceInfo[];</codeblock>
<codeblock props="flutter" outputclass="language-dart">List&lt;AudioDeviceInfo&gt; enumeratePlaybackDevices();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_iaudiodevicemanager_followsystemloopbackdevice">
<title><ph keyref="followSystemLoopbackDevice"/></title>
<title><ph keyref="followSystemLoopbackDevice" /></title>
<shortdesc id="short"><ph id="shortdesc">Sets whether the loopback device follows the system default playback device.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="followSystemLoopbackDevice"/>
<indexterm keyref="followSystemLoopbackDevice" />
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="cpp unreal bp" outputclass="language-cpp">virtual int followSystemLoopbackDevice(bool enable) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract followSystemLoopbackDevice(enable: boolean): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int FollowSystemLoopbackDevice(bool enable);</codeblock>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart">Future&lt;void> followSystemLoopbackDevice(bool enable);</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart">Future&lt;void&gt; followSystemLoopbackDevice(bool enable);</codeblock>
<codeblock props="reserve" outputclass="language-cpp" /></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand All @@ -38,17 +38,17 @@
<plentry>
<pt>enable</pt>
<pd>Whether to follow the system default audio playback device:<ul id="ul_l4n_jf3_5sb">
<li><codeph><ph keyref="true"/></codeph>: Follow the system default audio playback device. When the default playback device of the system is changed, the SDK immediately switches to the loopback device.</li>
<li><codeph><ph keyref="false"/></codeph>: Do not follow the system default audio playback device. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.</li>
<li><codeph><ph keyref="true" /></codeph>: Follow the system default audio playback device. When the default playback device of the system is changed, the SDK immediately switches to the loopback device.</li>
<li><codeph><ph keyref="false" /></codeph>: Do not follow the system default audio playback device. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.</li>
</ul></pd>
</plentry>
</parml> </section>
<section id="return_values">
<title><ph keyref="return-section-title"/></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException"/> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></p>
<title><ph keyref="return-section-title" /></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException" /> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></p>
<ul>
<li props="native unreal bp unity electron cs">0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
</ul> </section>
</refbody>
</reference>
</reference>
Loading

0 comments on commit 97fd4be

Please sign in to comment.