Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Oct 24, 2024
1 parent 97dd6de commit 2085181
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p>When a remote user has enabled dual-stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user. The default subscription behavior of the SDK for remote video streams depends on the registered video observer type:<ul>
<p>When a remote user has enabled dual-stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user. The default subscription behavior of the SDK for remote video streams depends on the type of registered video observer:<ul>
<li>If the <xref keyref="IVideoFrameObserver"/> observer is registered, the default is to subscribe to both raw data and encoded data.</li>
<li>If the <xref keyref="IVideoEncodedFrameObserver"/> observer is registered, the default is to subscribe only to the encoded data.</li>
<li>If both types of observers are registered, the default follows the last registered video observer. For example, if the last registered observer is the <apiname keyref="IVideoFrameObserver"/> observer, the default is to subscribe to both raw data and encoded data.</li>
</ul>If you want to modify the default behavior above, or want to set different subscription options for different <codeph>uids</codeph>, you can call this method to set it. <ph props="android cpp apple">For detailed implementation steps, please refer to <xref keyref="video-processing"/>.</ph></p>
<li>If both types of observers are registered, the default behavior follows the last registered video observer. For example, if the last registered observer is the <apiname keyref="IVideoFrameObserver"/> observer, the default is to subscribe to both raw data and encoded data.</li>
</ul>If you want to modify the default behavior, or set different subscription options for different <codeph>uids</codeph>, you can call this method to set it. <ph props="android cpp apple">For detailed implementation steps, please refer to <xref keyref="video-processing"/>.</ph></p>
</section>
<section id="parameters">
<title>Parameters</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
<parml>
<plentry props="hmos">
<pt>data</pt>
<pd>The audio spectrum information of the remote user, see <xref keyref="AudioSpectrumData" />. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.</pd>
<pd>The audio spectrum information of the remote user. See <xref keyref="AudioSpectrumData" />. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.</pd>
</plentry>
<plentry>
<pt props="android">userAudioSpectrumInfos</pt>
<pt props="ios mac">AudioSpectrumInfo</pt>
<pt props="cpp unreal bp unity rn electron flutter cs">spectrums</pt>
<pd>The audio spectrum information of the remote user, see <xref keyref="UserAudioSpectrumInfo" />. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.</pd>
<pd>The audio spectrum information of the remote user. See <xref keyref="UserAudioSpectrumInfo" />. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.</pd>
</plentry>
<plentry props="android cpp unreal bp unity rn electron flutter cs">
<pt>spectrumNumber</pt>
Expand Down
4 changes: 2 additions & 2 deletions en-US/dita/RTC-NG/API/class_videoframe.dita
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ class VideoFrame {
<p>The alpha channel data output by using portrait segmentation algorithm. This data matches the size of the video frame, with each pixel value ranging from [0,255], where 0 represents the background and 255 represents the foreground (portrait).</p>
<p>By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.</p>
<note type="attention"><ul><li props="android framework">In custom video rendering scenarios, ensure that both the video frame and <parmname>alphaBuffer</parmname> are of the Full Range type; other types may cause abnormal alpha data rendering.</li>
<li>Please make sure that <parmname props="cpp android framework">alphaBuffer</parmname><parmname props="apple">alphaBuf</parmname> is exactly the same size as the video frame (width × height), otherwise it may cause the app to crash.</li></ul></note>
<li>Make sure that <parmname props="cpp android framework">alphaBuffer</parmname><parmname props="apple">alphaBuf</parmname> is exactly the same size as the video frame (width × height), otherwise it may cause the app to crash.</li></ul></note>
</pd>
</plentry>
<plentry id="alphastitchmode">
Expand All @@ -768,7 +768,7 @@ class VideoFrame {
<plentry>
<pt>metaInfo</pt>
<pd>
<p>The meta information in the video frame. To use this parameter, please contact <xref keyref="ticket-link"/>.</p>
<p>The meta information in the video frame. To use this parameter, contact <xref keyref="ticket-link"/>.</p>
</pd>
</plentry>
</parml></section>
Expand Down

0 comments on commit 2085181

Please sign in to comment.