-
Notifications
You must be signed in to change notification settings - Fork 21
4.5.0 #3790
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
Merged
Merged
4.5.0 #3790
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
942d235
rte methods
Suri539 5e03f6a
InitMediaEngine
Suri539 29b7dbc
PreloadWithUrl to be finished
Suri539 80c4078
update
Suri539 58f055b
1
Suri539 3fd3a27
add methods
Suri539 43fdd85
pause to be finished
Suri539 40bb6c3
RtePlayerState&onResolutionChanged tbd
Suri539 d4fc1b5
onevent tbd
Suri539 a1abdf1
update
Suri539 664444b
450
Suri539 142e150
modification
Suri539 9d305f3
update
Suri539 2f1c2bd
update
Suri539 ccd1ac1
update
Suri539 440e5bf
RESOLVE COMMENTS
Suri539 fa453fd
class-method relation
Suri539 597a9ca
delete redundant methods
Suri539 2878b50
resolve comments
Suri539 eccead2
update
Suri539 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,79 @@ | ||
| <?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">添加渲染视图。</ph></shortdesc> | ||
| <prolog> | ||
| <metadata> | ||
| <keywords> | ||
| <indexterm keyref="AddView"/> | ||
| </keywords> | ||
| </metadata> | ||
| </prolog> | ||
| <refbody> | ||
| <section id="prototype"> | ||
| <p outputclass="codeblock"> | ||
| <codeblock props="android" outputclass="language-java">public void addView(View view, ViewConfig viewConfig) throws RteException;</codeblock> | ||
| <codeblock props="hmos" outputclass="language-arkts"/> | ||
| <codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)addView:(AgoraRteView * _Nonnull)view config:(AgoraRteViewConfig* _Nullable)config error:(AgoraRteError* _Nullable)error;</codeblock> | ||
| <codeblock props="cpp unreal" outputclass="language-cpp">bool AddView(View *view, ViewConfig *config, rte::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="scenario" deliveryTarget="details"> | ||
| <title>适用场景</title> | ||
| <p>当你需要使用播放器播放视频,你可以调用该方法将一个视图(view)添加到视频渲染器中,以便显示视频内容。</p> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details"> | ||
| <title>调用时机</title> | ||
| <p>该方法需要在 <xref keyref="SetCanvas"/> 之前调用。</p> | ||
| </section> | ||
| <section id="restriction" deliveryTarget="details"> | ||
| <title>调用限制</title> | ||
| <p>当前仅支持添加一个视图。</p> | ||
| </section> | ||
| <section id="parameters" deliveryTarget="details"> | ||
| <title>参数</title> | ||
| <parml> | ||
| <plentry> | ||
| <pt>view</pt> | ||
| <pd props="cpp">HWND 窗口句柄值。</pd> | ||
| <pd props="android">SurfaceView 对象。</pd> | ||
| <pd props="ios">UIView 对象。</pd> | ||
| <pd props="mac">NSView 对象。</pd> | ||
| </plentry> | ||
| <plentry id="config"> | ||
| <pt>config</pt> | ||
| <pd>View 对象的设置,目前请传空。</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>:添加视图失败。</li> | ||
| </ul> | ||
| </p> </section> | ||
| <section id="exception" conkeyref="SetAppId/exception" props="android"> | ||
| <title></title> | ||
| <p></p> | ||
| </section> | ||
| </refbody> | ||
| </reference> | ||
This file contains hidden or 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,56 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
| <reference id="api_canvas_canvas"> | ||
| <title><ph keyref="Canvas_Canvas"/></title> | ||
| <shortdesc id="short"><ph id="shortdesc">构造一个 Canvas 对象。</ph></shortdesc> | ||
| <prolog> | ||
| <metadata> | ||
| <keywords> | ||
| <indexterm keyref="Canvas_Canvas"/> | ||
| </keywords> | ||
| </metadata> | ||
| </prolog> | ||
| <refbody> | ||
| <section id="prototype"> | ||
| <p outputclass="codeblock"> | ||
| <codeblock props="android" outputclass="language-java">public Canvas(Rte rte, CanvasInitialConfig config);</codeblock> | ||
| <codeblock props="hmos" outputclass="language-arkts"/> | ||
| <codeblock props="ios mac" outputclass="language-objectivec">- (instancetype _Nonnull)initWithRte:(AgoraRte* _Nonnull)rte initialConfig:(AgoraRteCanvasInitialConfig * _Nullable)config;</codeblock> | ||
| <codeblock props="cpp unreal" outputclass="language-cpp">Canvas(Rte *rte, CanvasInitialConfig *initial_config);</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> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details"> | ||
| <title>调用时机</title> | ||
| <p>该方法需要在 <xref keyref="InitMediaEngine"/> 之后调用。</p> | ||
| </section> | ||
| <section id="restriction" deliveryTarget="details"> | ||
| <title>调用限制</title> | ||
| <p>无。</p> | ||
| </section> | ||
| <section id="parameters" deliveryTarget="details"> | ||
| <title>参数</title> | ||
| <parml> | ||
| <plentry conkeyref="Player_Player/rte"> | ||
| <pt/> | ||
| <pd/> | ||
| </plentry> | ||
| <plentry> | ||
| <pt props="cpp">initial_config</pt> | ||
| <pt props="apple android">config</pt> | ||
| <pd>Canvas 的对象配置,目前可传空。</pd> | ||
| </plentry> | ||
| </parml> </section> | ||
| </refbody> | ||
| </reference> |
This file contains hidden or 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,61 @@ | ||
| <?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></p> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details"> | ||
| <title>调用时机</title> | ||
| <p>该方法需要在 <xref keyref="Canvas_Canvas"/> 之后调用。</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"/> | ||
| <section id="exception" props="android" conkeyref="SetAppId/exception"> | ||
| <title></title> | ||
| <p></p> | ||
| </section> | ||
| </refbody> | ||
| </reference> |
This file contains hidden or 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_canvas_removeview"> | ||
| <title><ph keyref="RemoveView"/></title> | ||
| <shortdesc id="short"><ph id="shortdesc">移除渲染视图。</ph></shortdesc> | ||
| <prolog> | ||
| <metadata> | ||
| <keywords> | ||
| <indexterm keyref="RemoveView"/> | ||
| </keywords> | ||
| </metadata> | ||
| </prolog> | ||
| <refbody> | ||
| <section id="prototype"> | ||
| <p outputclass="codeblock"> | ||
| <codeblock props="android" outputclass="language-java">public void removeView(View view, ViewConfig viewConfig) throws RteException;</codeblock> | ||
| <codeblock props="hmos" outputclass="language-arkts"/> | ||
| <codeblock props="ios mac" outputclass="language-objectivec">- (BOOL)removeView:(AgoraRteView * _Nonnull)view config:(AgoraRteViewConfig* _Nullable)config error:(AgoraRteError* _Nullable)error;</codeblock> | ||
| <codeblock props="cpp unreal" outputclass="language-cpp">bool RemoveView(View *view, ViewConfig *config, rte::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>当你调用 <xref keyref="AddView"/> 添加视图后,如果你需要移除渲染视图,可调用此方法。</p> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details"> | ||
| <title>调用时机</title> | ||
| <p>该方法需在 <xref keyref="AddView"/> 后调用。</p> | ||
| </section> | ||
| <section id="restriction" deliveryTarget="details"> | ||
| <title>调用限制</title> | ||
| <p>一次只能移除一个视图。</p> | ||
| </section> | ||
| <section id="parameters" deliveryTarget="details"> | ||
| <title>参数</title> | ||
| <parml> | ||
| <plentry> | ||
| <pt>view</pt> | ||
| <pd>需要移除的视图对象。</pd> | ||
| </plentry> | ||
| <plentry conkeyref="AddView/config"> | ||
| <pt></pt> | ||
| <pd></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>:移除视图失败。</li> | ||
| </ul> | ||
| </p> </section> | ||
| <section id="exception" conkeyref="SetAppId/exception" props="android"/> | ||
| </refbody> | ||
| </reference> |
This file contains hidden or 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,61 @@ | ||
| <?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/> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details"> | ||
| <title>调用时机</title> | ||
| <p>该方法需要在 <xref keyref="OpenWithUrl"/> 之前调用。</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"/> | ||
| <section id="exception" conkeyref="SetAppId/exception" props="android"> | ||
| <title></title> | ||
| <p></p> | ||
| </section> | ||
| </refbody> | ||
| </reference> |
This file contains hidden or 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,53 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
| <reference id="api_canvasconfig_getmirrormode"> | ||
| <title><ph keyref="GetMirrorMode"/></title> | ||
| <shortdesc id="short"><ph id="shortdesc">获取当前设置的镜像模式。</ph></shortdesc> | ||
| <prolog> | ||
| <metadata> | ||
| <keywords> | ||
| <indexterm keyref="GetMirrorMode"/> | ||
| </keywords> | ||
| </metadata> | ||
| </prolog> | ||
| <refbody> | ||
| <section id="prototype"> | ||
| <p outputclass="codeblock"> | ||
| <codeblock props="android" outputclass="language-java">public Constants.VideoMirrorMode getVideoMirrorMode() throws RteException ;</codeblock> | ||
| <codeblock props="hmos" outputclass="language-arkts"/> | ||
| <codeblock props="ios mac" outputclass="language-objectivec">- (AgoraRteVideoMirrorMode)videoMirrorMode:(AgoraRteError * _Nullable)error;</codeblock> | ||
| <codeblock props="cpp unreal" outputclass="language-cpp">VideoMirrorMode GetMirrorMode(Error *err = nullptr);</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/> | ||
| </section> | ||
| <section id="timing" deliveryTarget="details" conkeyref="GetRenderMode/timing"></section> | ||
| <section id="restriction" deliveryTarget="details"> | ||
| <title>调用限制</title> | ||
| <p>无。</p> | ||
| </section> | ||
| <section id="parameters" deliveryTarget="details"> | ||
| <title><ph props="cpp apple framework">参数</ph></title> | ||
| <parml props="cpp apple framework"> | ||
| <plentry conkeyref="SetConfigs_Rte/err"> | ||
| <pt/> | ||
| <pd/> | ||
| </plentry> | ||
| </parml> </section> | ||
| <section id="return_values"> | ||
| <title><ph keyref="return-section-title"/></title> | ||
| <p>当前设置的镜像模式,详见 <xref keyref="RteVideoMirrorMode"/>。</p></section> | ||
| <section id="exception" props="android" conkeyref="SetAppId/exception"></section> | ||
| </refbody> | ||
| </reference> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.