Skip to content

Commit 91a240a

Browse files
authored
Merge pull request #3535 from AgoraIO/translation/4.x-api-ref
New YiCAT updates
2 parents c899128 + f3c0a84 commit 91a240a

16 files changed

+39
-34
lines changed

en-US/dita/RTC-NG/API/api_imediaplayer_selectmultiaudiotrack.dita

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
3-
<reference id="api_Imediaplayer_selectmultiaudiotrack">
3+
<reference id="api_imediaplayer_selectmultiaudiotrack">
44
<title><ph keyref="selectMultiAudioTrack"/></title>
55
<shortdesc id="short"><ph id="shortdesc">Selects the audio tracks that you want to play on your local device and publish to the channel respectively.</ph></shortdesc>
66
<prolog>

en-US/dita/RTC-NG/API/api_irtcengine_enableextension.dita

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,11 @@
7171
</ul></p>
7272
</pd>
7373
</plentry>
74-
<plentry id="source" props="cpp unreal bp unity rn electron flutter cs">
75-
<pt>type</pt>
76-
<pd>Type of media source. See <xref keyref="MEDIA_SOURCE_TYPE" />.<note type="attention">In this method, this parameter supports only the following two settings:<ul>
77-
<li>The default value is <apiname keyref="UNKNOWN_MEDIA_SOURCE" />.</li>
78-
<li>If you want to use the second camera to capture video, set this parameter to <apiname keyref="SECONDARY_CAMERA_SOURCE" />.</li>
79-
</ul></note></pd>
80-
</plentry>
74+
<plentry id="source">
75+
<pt props="cpp apple unreal bp unity rn electron flutter cs">type</pt>
76+
<pt props="android">sourceType</pt>
77+
<pd>Source type of the extension. See <xref keyref="MEDIA_SOURCE_TYPE" />.</pd>
78+
</plentry>
8179
</parml> </section>
8280
<section id="return_values">
8381
<title><ph keyref="return-section-title"/></title>

en-US/dita/RTC-NG/API/api_irtcengine_registerextension.dita

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@
4848
</dlentry>
4949
</dl>
5050
<p>After the extension is loaded, you can call this method to register the extension.</p>
51-
<p props="cpp unreal bp electron unity flutter">This method applies to Windows only.</p>
51+
<note type="attention">
52+
<ul>
53+
<li props="android">Before calling this method, you need to call <xref keyref="addExtension"/> to load the extension first.</li>
54+
<li props="apple">Before calling this method, you need to link the extension dynamic library (.xcframework) to your project in Xcode.</li>
55+
<li props="cpp framework">Before calling this method, you need to call <xref keyref="loadExtensionProvider"/> to load the extension first.</li>
56+
<li>For extensions external to the SDK (such as Extensions Marketplace extensions and SDK extensions), you need to call this method before calling <xref keyref="setExtensionProperty"/>.</li>
57+
</ul>
58+
</note>
5259
</section>
5360
<section id="parameters">
5461
<title>Parameters</title>

en-US/dita/RTC-NG/API/api_irtcengine_setainsmode.dita

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</section>
4545
<section id="scenario">
4646
<title>Applicable scenarios</title>
47-
<p>In scenarios such as co-hosting, online education and video meeting, this function can detect and reduce background noises to improve experience.</p>
47+
<p>In scenarios such as co-streaming, online education and video meeting, this function can detect and reduce background noises to improve experience.</p>
4848
</section>
4949
<section id="parameters">
5050
<title>Parameters</title>

en-US/dita/RTC-NG/API/api_irtcengine_setlocalaccesspoint.dita

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
33
<reference id="api_irtcengine_setlocalaccesspoint">
44
<title><ph keyref="setLocalAccessPoint" /></title>
5-
<shortdesc id="short"><ph id="shortdesc">Configure the connection with the native access module of the Agora network private media server.</ph></shortdesc>
5+
<shortdesc id="short"><ph id="shortdesc">Configures the connection with the access module of the Agora network private media server.</ph></shortdesc>
66
<prolog>
77
<metadata>
88
<keywords>
@@ -26,7 +26,7 @@
2626
</section>
2727
<section id="detailed_desc">
2828
<title>Details</title>
29-
<p>After successfully deploying the Agora private media server and integrating Agora Native SDK v4.0.0 on the intranet terminal, you can call this method to specify the Local Access Point and assign the Native access module to the SDK.</p>
29+
<p>After successfully deploying the Agora private media server and integrating the RTC SDK on the intranet terminal, you can call this method to specify the Local Access Point and assign the access module to the SDK.</p>
3030
<note type="attention">
3131
<ul>
3232
<li>This method takes effect only after the Agora hybrid cloud solution is deployed. You can contact <xref keyref="mailto-link" /> to get to know more about the Agora hybrid cloud solution.</li>

en-US/dita/RTC-NG/API/api_irtcengine_setlowlightenhanceoptions.dita

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
<plentry id="enable">
5858
<pt props="android cpp unreal bp electron unity rn flutter cs">enabled</pt>
5959
<pt props="ios mac">enable</pt>
60-
<pd>Whether to enable low-light enhancement function:<ul>
61-
<li><codeph><ph keyref="true" /></codeph>: Enable low-light enhancement function.</li>
62-
<li><codeph><ph keyref="false" /></codeph>: (Default) Disable low-light enhancement function.</li>
60+
<pd>Whether to enable low-light enhancement:<ul>
61+
<li><codeph><ph keyref="true" /></codeph>: Enable low-light enhancement.</li>
62+
<li><codeph><ph keyref="false" /></codeph>: (Default) Disable low-light enhancement.</li>
6363
</ul></pd>
6464
</plentry>
6565
<plentry id="options">

en-US/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</section>
3030
<section id="detailed_desc">
3131
<title>Details</title>
32-
<p id="apisequence" props="android ios cpp unreal bp unity flutter cs">There are two ways to start screen sharing, you can choose one according to your needs:<ul>
32+
<p id="apisequence" props="android ios cpp unreal bp unity flutter cs">There are two options for enabling screen sharing. You can choose the one that best suits your specific scenario:<ul>
3333
<li>Call this method before joining a channel, then call <xref keyref="joinChannel2"/> to join channel and set <parmname>publishScreenCaptureVideo</parmname> to <codeph><ph keyref="true"/></codeph> to start screen sharing.</li>
3434
<li>Call this method after joining a channel, then call <xref keyref="updateChannelMediaOptions"/> and set <parmname>publishScreenCaptureVideo</parmname> to <codeph><ph keyref="true"/></codeph> to start screen sharing.</li>
3535
</ul></p>
@@ -42,9 +42,7 @@
4242
<li props="cpp unreal bp ios unity rn flutter cs">If you are using the custom audio source instead of the SDK to capture audio, Agora recommends you add the keep-alive processing logic to your application to avoid screen sharing stopping when the application goes to the background.</li>
4343
<li props="cpp unreal bp ios unity rn flutter cs">This feature requires high-performance device, and Agora recommends that you use it on iPhone X and later models.</li>
4444
<li props="cpp unreal bp ios unity rn flutter cs">This method relies on the iOS screen sharing dynamic library <codeph>AgoraReplayKitExtension.xcframework</codeph>. If the dynamic library is deleted, screen sharing cannot be enabled normally.</li>
45-
<li props="cpp unreal bp android unity rn flutter cs">On the Android platform, make sure the user has granted the app screen capture permission.</li>
46-
<li props="cpp unreal bp android">Make sure that the Android API level is not earlier than 21, otherwise, the SDK reports error codes <codeph><apiname keyref="ERR_SCREEN_CAPTURE_PERMISSION_DENIED"/>(16)</codeph> and <codeph><apiname keyref="ERR_SCREEN_CAPTURE_SYSTEM_NOT_SUPPORTED"/>(2)</codeph>.</li>
47-
<li props="cpp unreal bp android">To capture system audio during screen sharing, ensure that the Android API level is not earlier than 29 as well; otherwise, the SDK reports the error code <codeph><apiname keyref="ERR_SCREEN_CAPTURE_SYSTEM_AUDIO_NOT_SUPPORTED"/>(3)</codeph>.</li>
45+
<li props="cpp unreal bp android unity rn flutter cs">On the Android platform, if the user has not granted the app screen capture permission, the SDK reports the <xref keyref="onPermissionError"/><codeph>(2)</codeph> callback.</li>
4846
<li props="cpp unreal bp android unity rn flutter cs">On Android 9 and later, to avoid the application being killed by the system after going to the background, Agora recommends you add the foreground service <codeph>android.permission.FOREGROUND_SERVICE</codeph> to the <codeph>/app/Manifests/AndroidManifest.xml</codeph> file.</li>
4947
<li props="cpp unreal bp android unity rn flutter cs">Due to performance limitations, screen sharing is not supported on Android TV.</li>
5048
<li props="cpp unreal bp android unity rn flutter cs">Due to system limitations, if you are using Huawei phones, do not adjust the video encoding resolution of the screen sharing stream during the screen sharing, or you could experience crashes.</li>
@@ -66,8 +64,10 @@
6664
<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>
6765
<ul props="cpp unreal bp android ios unity rn cs">
6866
<li>0: Success.</li>
69-
<li>&lt; 0: Failure.<ul>
70-
<li>-2: The parameter is null.</li>
67+
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph><ul>
68+
<li props="ios cpp framework">-2 (iOS platform): Empty parameter.</li>
69+
<li props="android cpp framework">-2 (Android platform): The system version is too low. Ensure that the Android API level is not lower than 21.</li>
70+
<li props="android cpp framework">-3 (Android platform): Unable to capture system audio. Ensure that the Android API level is not lower than 29.</li>
7171
</ul></li>
7272
</ul> </section>
7373
</refbody>

en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onchannelmediarelaystatechanged.dita

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ channelMediaRelayStateDidChange:(AgoraChannelMediaRelayState)state
6363
<p props="android bp">The error code of the channel media relay.<ul>
6464
<li><ph keyref="RELAY_OK" />(0): Everything is normal.</li>
6565
<li><ph keyref="RELAY_ERROR_SERVER_ERROR_RESPONSE" />(1): An error occurs in the server response.</li>
66-
<li><ph keyref="RELAY_ERROR_SERVER_NO_RESPONSE" />(2): No server response. This error may be caused by poor network connections. If this error occurs when initiating a cross-channel media relay, you can try again later; if this error occurs during the cross-channel media relay, you can call <xref keyref="leaveChannel2" /> to leave the channel. This error can also occur if your project has not enabled co-host token authentication. You can <xref keyref="ticket-link" /> to enable the service for cohosting across channels before starting a channel media relay.</li>
66+
<li><ph keyref="RELAY_ERROR_SERVER_NO_RESPONSE" />(2): No server response. This error may be caused by poor network connections. If this error occurs when initiating a channel media relay, you can try again later; if this error occurs during channel media relay, you can call <xref keyref="leaveChannel2" /> to leave the channel. This error can also occur if the channel media relay service is not enabled in the project. You can contact <xref keyref="ticket-link" /> to enable the service.</li>
6767
<li><ph keyref="RELAY_ERROR_NO_RESOURCE_AVAILABLE" />(3): The SDK fails to access the service, probably due to limited resources of the server.</li>
6868
<li><ph keyref="RELAY_ERROR_FAILED_JOIN_SRC" />4: The server fails to send the relay request.</li>
6969
<li><ph keyref="RELAY_ERROR_FAILED_JOIN_DEST" />5: The server fails to accept the relay request.</li>
7070
<li><ph keyref="RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC" />6: The server fails to receive the media stream.</li>
7171
<li><ph keyref="RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST" />7: The server fails to send the media stream.</li>
72-
<li><ph keyref="RELAY_ERROR_SERVER_CONNECTION_LOST" />(8): The SDK disconnects from the server due to poor network connections. You can call the <xref keyref="leaveChannel2" /> method to leave the channel.</li>
72+
<li><ph keyref="RELAY_ERROR_SERVER_CONNECTION_LOST" />(8): The SDK disconnects from the server due to poor network connections. You can call <xref keyref="leaveChannel2" /> to leave the channel.</li>
7373
<li><ph keyref="RELAY_ERROR_INTERNAL_ERROR" />(9): An internal error occurs in the server.</li>
7474
<li><ph keyref="RELAY_ERROR_SRC_TOKEN_EXPIRED" />(10): The token of the source channel has expired.</li>
7575
<li><ph keyref="RELAY_ERROR_DEST_TOKEN_EXPIRED" />(11): The token of the destination channel has expired.</li>

en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionerror.dita

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
4646
</section>
4747
<section id="detailed_desc">
48-
<p>When calling <xref keyref="enableExtension" /><codeph>(<ph keyref="true" />)</codeph> fails or the extension runs in error, the extension triggers this callback and reports the error code and reason.</p>
48+
<p>In case of extension enabling failure or runtime errors, the extension triggers this callback and reports the error code along with the reasons.</p>
4949
</section>
5050
<section id="parameters">
5151
<title>Parameters</title>

en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstarted.dita

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
3030
</section>
3131
<section id="detailed_desc">
32-
<p>After a successful call of <xref keyref="enableExtension" /><codeph>(<ph keyref="true" />)</codeph>, the extension triggers this callback.</p>
32+
<p>The extension triggers this callback after it is successfully enabled.</p>
3333
</section>
3434
<section id="parameters">
3535
<title>Parameters</title>

0 commit comments

Comments
 (0)