Skip to content

Commit

Permalink
Merge branch '4.4.0-bugfix-0905' of github.com:AgoraIO/agora_doc_sour…
Browse files Browse the repository at this point in the history
…ce into 4.4.0-bugfix-0905
  • Loading branch information
Cilla-luodan committed Sep 5, 2024
2 parents 5585e4e + 2026116 commit 5afb473
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?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">设置视频帧的观测位置。</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="setLocalVideoDataSourcePosition"/>
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java"/>
<codeblock props="hmos" outputclass="language-arkts"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<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">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="timing" deliveryTarget="details">
<title>调用时机</title>
<p>该方法需要在创建第一个 <xref keyref="VideoSurface"/> 视图之前调用。</p>
</section>
<section id="restriction" deliveryTarget="details">
<title>调用限制</title>
<p>该方法仅支持观测通过 <xref keyref="VideoSurface"/> 及其子类渲染的本地视频数据。</p>
</section>
<section id="parameters" deliveryTarget="details">
<title>参数</title>
<parml>
<plentry>
<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">
<title><ph keyref="return-section-title"/></title>
<p props="flutter">方法成功调用时,无返回值;方法调用失败时,会抛出 <xref keyref="AgoraRtcException"/> 异常,你需要捕获异常并进行处理。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></p>
<ul props="native unreal bp electron unity rn cs">
<li>0: 方法调用成功。</li>
<li>&lt; 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></li>
</ul> </section>
</refbody>
</reference>
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 5afb473

Please sign in to comment.