Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Suri539 committed Sep 5, 2024
1 parent 9be5811 commit 2026116
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_irtcengine_setlocalvideodatasourceposition">
<title><ph keyref="SetLocalVideoDataSourcePosition"/></title>
<shortdesc id="short"><ph id="shortdesc"><?oxy-placeholder content="Provide a short description for this API."?></ph></shortdesc>
<title><ph keyref="setLocalVideoDataSourcePosition"/></title>
<shortdesc id="short"><ph id="shortdesc">设置视频帧的观测位置。</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="SetLocalVideoDataSourcePosition"/>
<indexterm keyref="setLocalVideoDataSourcePosition"/>
</keywords>
</metadata>
</prolog>
Expand All @@ -19,41 +19,27 @@
<codeblock props="cpp unreal" outputclass="language-cpp"/>
<codeblock props="bp" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript"/>
<codeblock props="unity cs" outputclass="language-csharp"/>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int SetLocalVideoDataSourcePosition(VIDEO_MODULE_POSITION position);</codeblock>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/> </p>
</section>
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title">
<dl outputclass="since">
<dlentry props="native">
<dt>自从</dt>
<dd>v</dd>
</dlentry>
</dl>
<p/>
</section>
<section id="scenario" deliveryTarget="details">
<title>适用场景</title>
<p/>
</section>
<section id="timing" deliveryTarget="details">
<title>调用时机</title>
<p/>
<p>该方法需要在创建第一个 <xref keyref="VideoSurface"/> 视图之前调用。</p>
</section>
<section id="restriction" deliveryTarget="details">
<title>调用限制</title>
<p/>
</section>
<section id="related" deliveryTarget="details">
<title>相关回调</title>
<p/>
<p>该方法仅支持观测通过 <xref keyref="VideoSurface"/> 及其子类渲染的本地视频数据。</p>
</section>
<section id="parameters" deliveryTarget="details">
<title>参数</title>
<parml>
<plentry>
<pt/>
<pd/>
<pt>position</pt>
<pd>视频帧的观测位置,详见 <xref keyref="VIDEO_MODULE_POSITION"/>。
<note type="attention">
<ul><li>该方法目前仅支持将观测位置设为 <codeph><ph keyref="POSITION_POST_CAPTURER"/></codeph> 或 <codeph><ph keyref="POSITION_PRE_ENCODER"/></codeph>。</li>
<li>在 <codeph><ph keyref="POSITION_POST_CAPTURER"/></codeph> 处获取的视频帧未经裁剪且帧率较高,<codeph><ph keyref="POSITION_PRE_ENCODER"/></codeph> 位置获取的视频帧经过发送前的裁剪,帧率小于或等于摄像头采集的帧率。</li></ul></note></pd>
</plentry>
</parml> </section>
<section id="return_values">
Expand Down
4 changes: 4 additions & 0 deletions dita/RTC-NG/API/rtc_api_overview.dita
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,10 @@
<stentry props="android cpp apple framework"><xref keyref="enableContentInspect"/></stentry>
<stentry props="android cpp apple framework"><ph conkeyref="enableContentInspect/shortdesc"/></stentry>
</strow>
<strow props="unity">
<stentry><xref keyref="setLocalVideoDataSourcePosition"/></stentry>
<stentry><ph conkeyref="setLocalVideoDataSourcePosition/shortdesc"/></stentry>
</strow>
<strow>
<stentry><xref keyref="takeSnapshot"/></stentry>
<stentry><ph conkeyref="takeSnapshot/shortdesc"/></stentry>
Expand Down
1 change: 1 addition & 0 deletions dita/RTC-NG/RTC_NG_API_Unity.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
<topicref href="API/toc_snapshot.dita" chunk="to-content">
<topicref keyref="enableContentInspect" toc="no"/>
<topicref keyref="enableContentInspectEx" toc="no"/>
<topicref keyref="setLocalVideoDataSourcePosition" toc="no"/>
<topicref keyref="takeSnapshot" toc="no"/>
<topicref keyref="takeSnapshotEx" toc="no"/>
<topicref keyref="onContentInspectResult" toc="no" props="hide"/>
Expand Down
7 changes: 7 additions & 0 deletions dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="setLocalVideoDataSourcePosition" href="../API/api_irtcengine_setlocalvideodatasourceposition.dita">
<topicmeta>
<keywords>
<keyword>SetLocalVideoDataSourcePosition</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="enableVirtualBackground" href="../API/api_irtcengine_enablevirtualbackground.dita">
<topicmeta>
<keywords>
Expand Down
1 change: 1 addition & 0 deletions dita/RTC-NG/config/relations-rtc-ng-api.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,7 @@
</topicref>
<topicref keyref="setLocalRenderMode1" props="native unreal unity"/>
<topicref keyref="setLocalRenderMode2"/>
<topicref keyref="setLocalVideoDataSourcePosition" props="unity"/>
<topicref keyref="setLocalVideoMirrorMode"/>
<topicref keyref="setLocalVoiceEqualization"/>
<topicref keyref="setLocalVoiceFormant"/>
Expand Down

0 comments on commit 2026116

Please sign in to comment.