-
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.
- Loading branch information
Showing
11 changed files
with
391 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_canvas_addview"> | ||
<title><ph keyref="AddView"/></title> | ||
<shortdesc id="short"><ph id="shortdesc"><?oxy-placeholder content="Provide a short description for this API."?></ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="AddView"/> | ||
</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"/> | ||
<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/> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p/> | ||
</section> | ||
<section id="related" deliveryTarget="details"> | ||
<title>相关回调</title> | ||
<p/> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry> | ||
<pt/> | ||
<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_canvas_getconfigs"> | ||
<title><ph keyref="GetConfigs_Canvas"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">获取当前的播放器视频渲染配置。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="GetConfigs_Canvas"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void getConfigs(CanvasConfig config) throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)getConfigs:(AgoraRteCanvasConfig* _Nonnull)config error:(AgoraRteError* _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">bool GetConfigs(CanvasConfig *config, Error *err);</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 props="android" conkeyref="SetConfigs_Rte/exception"></p> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>//TODO 如果没有设置,调用这个方法会返回什么?默认设置?</p> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p>无。</p> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry conkeyref="SetConfigs_Canvas/config"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
<plentry props="cpp apple" conkeyref="SetConfigs_Rte/err"> | ||
<pt></pt> | ||
<pd></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" props="cpp apple framework" conkeyref="GetConfigs_Rte/return_values"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_canvas_setconfigs"> | ||
<title><ph keyref="SetConfigs_Canvas"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">设置播放器视频渲染配置。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="SetConfigs_Canvas"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void setConfigs(CanvasConfig config) throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)setConfigs:(AgoraRteCanvasConfig* _Nonnull)config error:(AgoraRteError* _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">bool SetConfigs(CanvasConfig *config, Error *err);</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 props="android" conkeyref="SetConfigs_Rte/exception"/> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>当你调用 <xref keyref="SetCanvas"/> 指定一个 Canvas 对象来显示视频后,你可以调用该方法来设置渲染配置。//TODO</p> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p>无。</p> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry id="config"> | ||
<pt>config</pt> | ||
<pd>Canvas 对象的设置,详见 <xref keyref="CanvasConfig"/>。</pd> | ||
</plentry> | ||
<plentry props="apple cpp" conkeyref="SetConfigs_Rte/err"> | ||
<pt></pt> | ||
<pd></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" conkeyref="SetConfigs_Rte/return_values" props="apple cpp framework"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_player_setcanvas"> | ||
<title><ph keyref="SetCanvas"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">设置 Canvas 以显示视频。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="SetCanvas"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void setCanvas(Canvas canvas) throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)setCanvas:(AgoraRteCanvas *_Nonnull)canvas error:(AgoraRteError * _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">bool SetCanvas(Canvas *canvas, Error *err);</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>该方法用于指定一个 Canvas 对象来显示视频。当视频流成功加载后,视频画面会显示在这个指定的 Canvas 上。</p> | ||
<p props="android" conkeyref="SetConfigs_Rte/exception"/> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>//TODO</p> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p>无。</p> | ||
</section> | ||
<section id="related" deliveryTarget="details"> | ||
<title>相关回调</title> | ||
<p/> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry> | ||
<pt>canvas</pt> | ||
<pd>用于渲染视频帧的 Canvas 对象,详见 <xref keyref="Canvas"/>。</pd> | ||
</plentry> | ||
<plentry props="cpp apple" conkeyref="SetConfigs_Rte/err"> | ||
<pt></pt> | ||
<pd></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" props="cpp apple framework"> | ||
<title><ph keyref="return-section-title"/></title> | ||
<p props="flutter">方法成功调用时,无返回值;方法调用失败时,会抛出 <xref keyref="AgoraRtcException"/> 异常,你需要捕获异常并进行处理。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></p> | ||
<p props="cpp apple unreal bp electron unity rn cs">设置是否成功:<ul> | ||
<li><codeph><ph keyref="true"/></codeph>:设置成功。</li> | ||
<li><codeph><ph keyref="false"/></codeph>:设置失败,可通过 <parmname props="cpp">err</parmname><parmname props="apple">error</parmname> 参数返回的错误码了解详细信息。</li> | ||
</ul></p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="class_canvas"> | ||
<title><ph keyref="Canvas"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">该类提供设置播放器视频渲染的方法。</ph></shortdesc> | ||
</reference> |
Oops, something went wrong.