Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Aug 21, 2024
1 parent a793cb8 commit 995ac92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
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_imediaplayer_setvideoframedelegate">
<title><ph keyref="setVideoFrameDelegate"/></title>
<shortdesc id="short"><ph id="shortdesc">注册媒体播放器的视频观测器对象。</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Register the video observer object of the media player.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand All @@ -25,14 +25,14 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p>When calling this method to register a video observer, you can register<xref keyref="AgoraRtcMediaPlayerVideoFrameDelegate"/> callbacks in the class as needed. After you successfully register the video frame observer, the SDK triggers the registered callbacks each time a video frame is received.</p>
<p>When calling this method to register a video observer, you can register callbacks in the <xref keyref="AgoraRtcMediaPlayerVideoFrameDelegate"/> class as needed. After you successfully register the video frame observer, the SDK triggers the registered callbacks each time a video frame is received.</p>
</section>
<section id="parameters">
<title>Parameters</title>
<parml>
<plentry>
<pt>delegate</pt>
<pd>接口对象实例,详见 <xref keyref="AgoraRtcMediaPlayerVideoFrameDelegate"/> Set the value as <ph keyref="NULL"/>to release the instance.</pd>
<pd>The delegate instance. See <xref keyref="AgoraRtcMediaPlayerVideoFrameDelegate"/>. Set the value as <ph keyref="NULL"/> to release the instance.</pd>
</plentry>
</parml> </section>
<section id="return_values">
Expand Down
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="callback_agorartcmediaplayervideoframedelegate_agorartcmediaplayergetVvideopixelformat">
<title><ph keyref="AgoraRtcMediaPlayerGetVideoPixelFormat"/></title>
<shortdesc id="short"><ph id="shortdesc">设置媒体播放器输出的原始视频数据格式。</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Set the format of raw video data.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand All @@ -24,12 +24,12 @@
<codeblock props="flutter" outputclass="language-dart"/> </p>
</section>
<section id="detailed_desc">
<p>You need to register the callback when calling the <xref keyref="setVideoFrameDelegate"/> method. 成功注册后,媒体播放器会在捕捉到每个视频帧时触发该回调,你需要在该回调的返回值中设置期望的视频数据格式。</p>
<p>You need to register the callback when calling the <xref keyref="setVideoFrameDelegate"/> method. This callback is triggered when the media player receives every video frame. You can set the desired video data format in the return value of this callback.</p>
</section>
<section id="return_values">
<title>Returns</title>
<p>设置媒体播放器输出的原始数据格式。 See <xref keyref="VIDEO_PIXEL_FORMAT"/>.</p>
<p>在默认情况下,原始视频像素格式 (<ph keyref="VIDEO_PIXEL_DEFAULT"/>) 可能为 I420 CVPixelBufferRef</p>
<p>The desired format you set for the raw video data. See <xref keyref="VIDEO_PIXEL_FORMAT"/>.</p>
<p>By default, the original video pixel format (<ph keyref="VIDEO_PIXEL_DEFAULT"/>) may be I420 or CVPixelBufferRef.</p>
</section>
</refbody>
</reference>
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="callback_agorartcmediaplayervideoframedelegate_didreceivepixelbuffer">
<title><ph keyref="didReceivePixelBuffer"/></title>
<shortdesc id="short"><ph id="shortdesc">获取视频源的像素缓冲区回调。</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Occurs when the SDK gets the pixel buffer of the video source.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand All @@ -26,18 +26,18 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p>当媒体播放器获取到视频源的像素缓冲区时会触发此回调,并报告 CVPixelBufferRef 类型的像素缓冲区的详细信息。 你可以利用这些数据进行图像处理和分析、自定义渲染等。</p>
<p>When the media player receives the pixel buffer of the video source, this callback is triggered to report the detailed information about the pixel buffer of type CVPixelBufferRef. You can use this information for image processing and analysis, custom rendering, etc.</p>
</section>
<section id="parameters">
<title>Parameters</title>
<parml>
<plentry>
<pt>playerKit</pt>
<pd><xref keyref="IMediaPlayer"/>的实例。</pd>
<pd>The <xref keyref="IMediaPlayer"/> instance.</pd>
</plentry>
<plentry>
<pt>pixelBuffer</pt>
<pd>一个 CVPixelBufferRef 对象,包含了像素缓冲区的详细信息。</pd>
<pd>A CVPixelBufferRef object that contains detailed information about the pixel buffer.</pd>
</plentry>
</parml> </section>
</refbody>
Expand Down

0 comments on commit 995ac92

Please sign in to comment.