Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Sep 5, 2024
1 parent e7d0f2c commit e1ad0a3
Show file tree
Hide file tree
Showing 10 changed files with 202 additions and 194 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</section>
<section id="timing" deliveryTarget="details">
<title>Call timing</title>
<p>Agora recommends that you call this method before joining a channel.</p>
<p>Call this method before joining a channel.</p>
</section>
<section id="restriction" deliveryTarget="details">
<title>Restrictions</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<codeblock props="flutter" outputclass="language-dart">Future&lt;ConnectionStateType&gt; getConnectionState();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title"/>
<section id="timing" deliveryTarget="details">
<title>Call timing</title>
<p>This method can be called either before or after joining the channel.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<codeblock props="flutter" outputclass="language-dart">Future&lt;ConnectionStateType&gt; getConnectionStateEx(RtcConnection connection);</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title"/>
<section id="timing" deliveryTarget="details" conkeyref="getConnectionState/timing"/>
<section id="restriction" deliveryTarget="details" conkeyref="getConnectionState/restriction"/>
<section id="parameters" deliveryTarget="details">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</section>
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title">
<p props="native unreal bp unity cs">You can get raw video data collected by the local device through this callback and preprocess it as needed. Once the preprocessing is complete, you can directly modify <parmname>videoFrame</parmname> in this callback, and set the return value to <codeph><ph keyref="true"/></codeph> to send the modified video data to the SDK.</p>
<p props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call <xref keyref="getVideoFrameProcessMode"/><codeph>(0)</codeph> first to set the video processing mode to read and write mode.</p>
<p props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call<xref keyref="getVideoFrameProcessMode"/> (0) first to set the video processing mode to read and write mode<ph keyref="PROCESS_MODE_READ_WRITE"/>.</p>
<p props="flutter rn electron">You can get raw video data collected by the local device through this callback.</p>
</section>
<section id="scenario" deliveryTarget="details">
Expand All @@ -49,7 +49,7 @@
<section id="restriction" deliveryTarget="details">
<title>Restrictions</title>
<ul>
<li>The video data you get here is the raw video data, that is, video data that has not undergone preprocessing such as watermarking, cropping, and rotation.</li>
<li props="hide">The video data you get here is the raw video data, that is, video data that has not undergone preprocessing such as watermarking, cropping, and rotation.</li>
<li>If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel.</li>
<li id="restric1">It is recommended that you ensure the modified parameters in <parmname>videoFrame</parmname> are consistent with the actual situation of the video frames in the video frame buffer. Otherwise, it may cause unexpected rotation, distortion, and other issues in the local preview and remote video display.</li>
<li props="rn electron">It's recommended that you implement this callback through the C++ API.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<p props="native unreal bp unity electron rn cs">After processing, you can send the processed video data back to the SDK in this callback.</p>
<note type="attention">
<ul>
<li props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call<xref keyref="getVideoFrameProcessMode"/> (0) first to set the video processing mode to read and write mode<ph keyref="PROCESS_MODE_READ_WRITE"/>.</li>
<li props="native unreal bp cs">To get the video data captured from the second screen before encoding, you need to set <apiname keyref="POSITION_PRE_ENCODER"/> (1 &lt;&lt; 2) as a frame position through <xref keyref="getObservedFramePosition"/>.</li>
<li props="unity">To get the video data captured from the second screen before encoding, you need to set <apiname keyref="POSITION_PRE_ENCODER"/> (1 &lt;&lt; 2) as a frame <parmname>position</parmname> through the position parameter of the <xref keyref="registerVideoFrameObserver"/> method.</li>
<li props="rn electron">It's recommended that you implement this callback through the C++ API.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<p>After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. In this callback, you can get the video data sent from the remote end before rendering, and then process it according to the particular scenarios.</p>
<note type="attention" props="native unreal bp electron rn flutter">
<ul>
<li props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call<xref keyref="getVideoFrameProcessMode"/> (0) first to set the video processing mode to read and write mode<ph keyref="PROCESS_MODE_READ_WRITE"/>.</li>
<li>If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel.</li>
<li props="rn electron">It's recommended that you implement this callback through the C++ API.</li>
<li props="flutter rn electron">Due to framework limitations, this callback does not support sending processed video data back to the SDK.</li>
Expand Down
Loading

0 comments on commit e1ad0a3

Please sign in to comment.