Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Nov 12, 2024
1 parent 9d146f9 commit 03778bb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_imediaplayer_preloadsrc.dita
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<p props="native unreal bp rn electron">After calling this method, if you receive the <apiname keyref="PLAYER_PRELOAD_EVENT_COMPLETE" /> event in the <xref keyref="onPreloadEvent" /> callback, the preload is successful; If you receive the <apiname keyref="PLAYER_PRELOAD_EVENT_ERROR" /> event in the <xref keyref="onPreloadEvent" /> callback, the preload fails.</p>
<p>If the preload is successful and you want to play the media resource, call <xref keyref="playPreloadedSrc" />; if you want to clear the playlist, call <xref keyref="stop" />.</p>
<note type="note">
<ul><li>调用该方法前,请确保你已经调用 <xref keyref="open"/> <xref keyref="openWithMediaSource"/> 成功打开媒体资源。</li>
<ul><li>Before calling this method, ensure that you have called <xref keyref="open"/> or <xref keyref="openWithMediaSource"/> to open the media resource successfully.</li>
<li>Agora does not support preloading duplicate media resources to the playlist. However, you can preload the media resources that are being played to the playlist again.</li></ul>
</note> </section>
<section id="parameters">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
</section>
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title">
<p>You can call this method to enable the video noise reduction feature and set the options of the video noise reduction effect.</p>
<note type="note" id="advanced">如果该方法实现的降噪强度无法满足你的需求,声网推荐你调用 <xref keyref="setBeautyEffectOptions"/> 方法启用美颜磨皮功能,以获得更好的视频降噪效果。 强效降噪效果的 <xref keyref="BeautyOptions"/> 推荐设置如下:<ul>
<note type="note" id="advanced">If the noise reduction implemented by this method does not meet your needs, Agora recommends that you call the <xref keyref="setBeautyEffectOptions"/> method to enable the beauty and skin smoothing function to achieve better video noise reduction effects. The recommended <xref keyref="BeautyOptions"/> settings for intense noise reduction effect are as follows:<ul>
<li><parmname>lighteningContrastLevel</parmname><ph keyref="LIGHTENING_CONTRAST_NORMAL" /></li>
<li><parmname>lighteningLevel</parmname>0.0</li>
<li><parmname>smoothnessLevel(0</parmname>),</li>
<li><parmname>rednessLevel(0</parmname>),</li>
<li><parmname>sharpnessLevel</parmname>0.1</li>
<li><parmname>lighteningLevel</parmname>: 0.0</li>
<li><parmname>smoothnessLevel</parmname>: 0.5</li>
<li><parmname>rednessLevel</parmname>: 0.0</li>
<li><parmname>sharpnessLevel</parmname>: 0.1</li>
</ul></note>
</section>
<section id="scenario" deliveryTarget="details">
Expand Down
18 changes: 9 additions & 9 deletions en-US/dita/RTC-NG/API/api_irtcengine_startlocalaudiomixer.dita
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
<dd>v4.5.0</dd>
</dlentry>
</dl>
<p>This method supports merging multiple audio streams into one audio stream locally. 例如:将本地麦克风采集的音频流、媒体播放器中的音频流、声卡采集的音频流、远端音频流等合并为一路音频流,然后将合流后的音频流发布到频道中。<ul>
<li>如果你要对本地采集的音频流进行合流,可以将 <xref keyref="ChannelMediaOptions"/> 中的 publishMixedAudioTrack 设置为 <codeph><ph keyref="true"/></codeph>,则可将合流后的音频流发布到频道中。</li>
<li>如果你要对远端音频流进行合流,需确保远端音频流已在频道内发布并且已被订阅。</li>
<p>This method supports merging multiple audio streams into one audio stream locally. For example, merging the audio streams captured from the local microphone, and that from the media player, the sound card, and the remote users into one audio stream, and then publish the merged audio stream to the channel.<ul>
<li>If you want to mix the locally captured audio streams, you can set publishMixedAudioTrack in <xref keyref="ChannelMediaOptions"/> to <codeph><ph keyref="true"/></codeph>, and then publish the mixed audio stream to the channel.</li>
<li>If you want to mix the remote audio stream, ensure that the remote audio stream has been published in the channel and you have subcribed to the audio stream that you need to mix.</li>
</ul></p>
</section>
<section id="scenario" deliveryTarget="details">
<title>Applicable scenarios</title>
<p>你可以在如下场景中开启该功能:<ul>
<li>结合本地合图功能一起使用,可将合图视频流相关的音频流同步采集和发布。</li>
<li>在直播场景下,用户接收频道内的音频流,在本地进行多路音频流合流后转发到其他频道。</li>
<li>在教育场景下,老师可将跟学生连麦互动的音频在本地进行合流,然后将合并的音频流转发到其他频道。</li>
<p>You can enable this function in the following scenarios:<ul>
<li>By utilizing the local image stitching feature, the associated audio streams of the mixed video streams can be simultaneously captured and published.</li>
<li>In live streaming scenarios, users can receive audio streams within the channel, mix multiple audio streams locally, and then forward the mixed audio stream to other channels.</li>
<li>In online classes, teachers can mix the audio from interactions with students locally and then forward the mixed audio stream to other channels.</li>
</ul></p>
</section>
<section id="timing" deliveryTarget="details">
Expand All @@ -49,14 +49,14 @@
</section>
<section id="restriction" deliveryTarget="details">
<title>Restrictions</title>
<p>为了保证音频质量,建议参与本地合流的音频流数量不超过 10 个。</p>
<p>To ensure audio quality, it is recommended that the number of audio streams to be mixed does not exceed 10.</p>
</section>
<section id="parameters" deliveryTarget="details">
<title>Parameters</title>
<parml>
<plentry id="config">
<pt>config</pt>
<pd>本地音频合流的配置。 See <xref keyref="LocalAudioMixerConfiguration"/>.</pd>
<pd>The configurations for mixing the lcoal audio. See <xref keyref="LocalAudioMixerConfiguration"/>.</pd>
</plentry>
</parml> </section>
<section id="return_values">
Expand Down
4 changes: 2 additions & 2 deletions en-US/dita/RTC-NG/API/api_player_player.dita
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_player_player">
<title><ph keyref="Player_Player"/></title>
<shortdesc id="short"><ph id="shortdesc">构造一个播放器对象。</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Create a player object.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand Down Expand Up @@ -51,7 +51,7 @@
<plentry>
<pt props="apple cpp">config</pt>
<pt props="android">initialConfigç</pt>
<pd>播放器对象初始化设置,可传空指针。</pd>
<pd>Player object initialization settings. Currently you can set it as null.</pd>
</plentry>
</parml> </section>
</refbody>
Expand Down
16 changes: 8 additions & 8 deletions en-US/dita/RTC-NG/API/api_player_preloadwithurl.dita
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_player_preloadwithurl">
<title><ph keyref="PreloadWithUrl"/></title>
<shortdesc id="short"><ph id="shortdesc">预加载 URL 资源。</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Preloads a URL resources.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand Down Expand Up @@ -31,26 +31,26 @@
<dd>v4.5.0</dd>
</dlentry>
</dl>
<p>成功预加载后,可以加快通过 <xref keyref="OpenWithUrl"/> 打开 URL 资源的速度。 当需要使用这些资源时,可以更加快速地访问,缩短等待的过程。</p>
<p>After successful preloading, the speed of accessing URL resources can be accelerated when calling <xref keyref="OpenWithUrl"/>. When you need to use these resources, you can access them more quickly and shorten the waiting process.</p>
</section>
<section id="scenario" deliveryTarget="details">
<title>Applicable scenarios</title>
<p>在打开媒体资源之前,提前加载可以减少用户等待时间,提供更流畅的视听体验。</p>
<p>Before opening media resources, preloading can reduce the time for waiting and provide a smoother user experience.</p>
</section>
<section id="timing" deliveryTarget="details">
<title>Call timing</title>
<p>Call this method after <xref keyref="OpenWithUrl"/>.</p>
</section>
<section id="restriction" deliveryTarget="details">
<title>Restrictions</title>
<p>该方法目前仅对带 <codeph>rte://</codeph> 前缀的 URL 生效,最多可以预加载 20 个 URL。 如果超出限制,新预加载的 URL 将会替换最早的 URL</p>
<p>This method currently only takes effect on URLs with the prefix <codeph>rte://</codeph>. A maximum of 20 URLs can be preloaded. If exceeded, the newly preloaded URL will replace the oldest one.</p>
</section>
<section id="parameters" deliveryTarget="details">
<title>Parameters</title>
<parml>
<plentry id="url">
<pt>url</pt>
<pd><codeph>rte://</codeph> 前缀的 URL。<p props="hide">各字段的详细说明详见<xref keyref="rte-player"/></p></pd>
<pd>URLs with the <codeph>rte://</codeph> prefix.<p props="hide">See <xref keyref="rte-player"/> for detailed explanations of each field.</p></pd>
</plentry>
<plentry props="cpp apple" conkeyref="SetConfigs_Rte/err">
<pt></pt>
Expand All @@ -60,9 +60,9 @@
<section id="return_values" props="cpp apple framework">
<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. 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>
<p props="cpp apple unreal bp electron unity rn cs">预加载是否成功:<ul>
<li><codeph><ph keyref="true"/></codeph>:预加载成功。</li>
<li><codeph><ph keyref="false"/></codeph>:预加载失败。</li>
<p props="cpp apple unreal bp electron unity rn cs">Whether preloading is successful:<ul>
<li><codeph><ph keyref="true"/></codeph>: Preloading succeeds.</li>
<li><codeph><ph keyref="false"/></codeph>: Preloading fails.</li>
</ul>
</p> </section>
<section id="exception" props="android" conkeyref="SetAppId/exception">
Expand Down

0 comments on commit 03778bb

Please sign in to comment.