Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wording #3650

Merged
merged 10 commits into from
Jun 13, 2024
Merged

wording #3650

Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<p>SDK 不支持同一时间向同一个 URL 重复推流。</p>
<p><b>媒体选项说明</b></p>
<p>SDK 不支持 <parmname>publishCameraTrack</parmname> 和 <parmname>publishCustomVideoTrack</parmname> 同时为 <codeph><ph keyref="true" /></codeph>,也不支持 <parmname>publishMicrophoneTrack</parmname> 和 <parmname>publishCustomAudioTrack</parmname> 同时为 <codeph><ph keyref="true" /></codeph>。你可以根据场景需求设置媒体选项 (<xref keyref="DirectCdnStreamingMediaOptions" />)。示例如下:</p>
<p>如果你想推送主播端采集的音视频流,请将媒体选项进行如下设置:</p>
<p>如果你想推送主播端自采集的音视频流,请将媒体选项进行如下设置:</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

跟现有文档保持一致:自定义音频采集

<ul>
<li props="android cpp unreal bp electron unity cs rn flutter"><parmname>publishCustomAudioTrack</parmname> 设为 <codeph><ph keyref="true" /></codeph> 并调用 <xref props="android" keyref="pushAudioFrame2" /><xref props="cpp unreal bp unity cs rn flutter electron" keyref="pushAudioFrame" /></li>
<li props="ios mac"><parmname>publishCustomAudioTrack</parmname> 设为 <codeph><ph keyref="true" /></codeph> 并调用 <xref keyref="pushExternalAudioFrameSampleBuffer2" /> 或 <xref keyref="pushAudioFrame2" /></li>
Expand Down
9 changes: 8 additions & 1 deletion dita/RTC-NG/API/class_videocanvas.dita
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,14 @@ class VideoCanvas {
<plentry>
<pt>view</pt>
<pd props="native flutter unity cs electron rn">视频显示窗口。<ph props="android">必须为一个 <xref keyref="SurfaceView-link"/> 或 <xref keyref="TextureView-link"/> 对象。</ph>
<note type="attention">在一个 <apiname keyref="VideoCanvas"/> 中,你只能选择 <parmname>view</parmname> 或 <parmname>surfaceTexture</parmname> 其中一个进行设置,如果同时设置,只有 <parmname>view</parmname> 中的设置会生效。</note></pd>
<note type="attention" props="native flutter unity cs">在一个 <apiname keyref="VideoCanvas"/> 中,你只能选择 <parmname>view</parmname> 或 <parmname>surfaceTexture</parmname> 其中一个进行设置,如果同时设置,只有 <parmname>view</parmname> 中的设置会生效。</note>
<note type="attention" props="rn">
<ul>
<li>在一个 <apiname keyref="VideoCanvas"/> 中,你只能选择 <parmname>view</parmname> 或 <parmname>surfaceTexture</parmname> 其中一个进行设置,如果同时设置,只有 <parmname>view</parmname> 中的设置会生效。</li>
<li>如果想自定义本地渲染视图的 <parmname>uid</parmname>(使用非 0 <parmname>uid</parmname>),你还需要同时传入 <parmname>souceType</parmname>。</li>
Nero-Hu marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</note>
</pd>
<pd props="unreal bp">视频图像。你需要定义 UImage 类型的指针,并传入该参数,示例代码如下:
<codeblock props="unreal bp" outputclass="language-cpp">agora::rtc::VideoCanvas videoCanvas;
UImage* LocalVideo;
Expand Down
Loading