-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/rtc-ng/4.5.0' into 4.5.0-ld
- Loading branch information
Showing
30 changed files
with
1,115 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
dita/RTC-NG/API/api_irtcengine_setexternalremoteeglcontext.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_irtcengine_setexternalremoteeglcontext"> | ||
<title><ph keyref="setExternalRemoteEglContext"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">设置远端视频流渲染的 EGL 环境上下文。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="setExternalRemoteEglContext"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public abstract int setExternalRemoteEglContext(Object eglContext);</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec"/> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">virtual int setExternalRemoteEglContext(void* eglContext) = 0;</codeblock> | ||
<codeblock props="bp" outputclass="language-cpp"/> | ||
<codeblock props="electron" outputclass="language-typescript"/> | ||
<codeblock props="unity cs" outputclass="language-csharp"/> | ||
<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>v4.5.0</dd> | ||
</dlentry> | ||
</dl> | ||
<p>通过设置该方法,开发者可以替换 SDK 内部默认的远端 EGL 环境上下文,便于实现统一的 EGL 上下文管理。</p> | ||
<p>引擎销毁时,SDK 会自动释放 EGL 环境上下文。</p> | ||
<note type="attention" props="cpp unreal bp flutter unity rn">该方法仅适用于 Android。</note> | ||
</section> | ||
<section id="scenario" deliveryTarget="details"> | ||
<title>适用场景</title> | ||
<p>该方法适用于使用 Texture 格式的视频数据进行远端视频自渲染的场景。</p> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>该方法需要在加入频道前调用。</p> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p>无。</p> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry> | ||
<pt>eglContext</pt> | ||
<pd>用于远端视频流渲染的 EGL 环境上下文对象。</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>< 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></li> | ||
</ul> </section> | ||
</refbody> | ||
</reference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.