-
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
10 changed files
with
302 additions
and
13 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
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_config_getjsonparameter"> | ||
<title><ph keyref="GetJsonParameter_Config"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">获取已设置的 SDK JSON 配置信息。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="GetJsonParameter_Config"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public String getJsonParameter() throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (NSString * _Nullable)jsonParameter:(AgoraRteError * _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">std::string GetJsonParameter(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>当你调用 <xref keyref="SetJsonParameter_Config"/> 设置 JSON 配置信息后,你可以调用该方法获取已设置的配置信息。</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" props="cpp apple framework"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry conkeyref="SetConfigs_Rte/err"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values"> | ||
<title><ph keyref="return-section-title" props="cpp apple framework"/> | ||
<ph props="android">异常</ph></title> | ||
<p props="flutter">方法成功调用时,无返回值;方法调用失败时,会抛出 <xref keyref="AgoraRtcException"/> 异常,你需要捕获异常并进行处理。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></p> | ||
<ul props="cpp apple unreal bp electron unity rn cs"> | ||
<li>方法调用成功,返回设置的 JSON 配置信息。</li> | ||
<li>方法调用失败,返回空字符串。</li> | ||
</ul> | ||
<p props="android" conkeyref="SetAppId/exception"/></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
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_config_setjsonparameter"> | ||
<title><ph keyref="SetJsonParameter_Config"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">设置 SDK 的 JSON 配置信息。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="SetJsonParameter_Config"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void setJsonParameter(String jsonParameter) throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (void)setJsonParameter:(NSString * _Nullable)jsonParameter error:(AgoraRteError * _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">void SetJsonParameter(const char *json_parameter, 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="scenario" deliveryTarget="details"> | ||
<title>适用场景</title> | ||
<p>当你需要设置私有参数或使用定制功能时,可以调用该方法。</p> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>该方法需要在创建 <xref keyref="Config"/> 对象之后调用。//TODO 这个config对象是在setconfig的时候创建的,所以可不可以说需要在 setconfig 之后调用?</p> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>调用限制</title> | ||
<p>无。</p> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry id="json"> | ||
<pt props="apple android">jsonParameter</pt> | ||
<pt props="cpp">json_parameter</pt> | ||
<pd>JSON 字符串形式的参数。</pd> | ||
</plentry> | ||
<plentry props="cpp apple" conkeyref="SetConfigs_Rte/err"> | ||
<pt></pt> | ||
<pd></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" props="android"> | ||
<title><ph>异常</ph></title> | ||
<p conkeyref="SetAppId/exception"></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,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_playerconfig_getjsonparameter"> | ||
<title><ph keyref="GetJsonParameter_PlayerConfig"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">获取设置的媒体播放器的 JSON 配置信息。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="GetJsonParameter_PlayerConfig"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public String getJsonParameter() throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (NSString * _Nullable)jsonParameter:(AgoraRteError * _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">std::string GetJsonParameter(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> | ||
当你调用 <xref keyref="SetJsonParameter_PlayerConfig"/> 设置 JSON 配置信息后,你可以调用该方法获取已设置的配置信息。 | ||
</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" props="cpp apple"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry conkeyref="SetConfigs_Rte/err"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" conkeyref="GetJsonParameter_Config/return_values"></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,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="api_playerconfig_setjsonparameter"> | ||
<title><ph keyref="SetJsonParameter_PlayerConfig"/></title> | ||
<shortdesc id="short"><ph id="shortdesc">设置播放器的 JSON 配置信息。</ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="SetJsonParameter_PlayerConfig"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void setJsonParameter(String jsonParameter) throws RteException;</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (void)setJsonParameter:(NSString * _Nonnull)jsonParameter error:(AgoraRteError * _Nullable)error;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">void SetJsonParameter(const char *json_parameter, 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="scenario" deliveryTarget="details"> | ||
<title>适用场景</title> | ||
<p>当你需要设置私有参数或使用定制功能时,可以调用该方法。</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="SetJsonParameter_Config/json"> | ||
<pt/> | ||
<pd/> | ||
</plentry> | ||
<plentry props="cpp apple" conkeyref="SetConfigs_Rte/err"> | ||
<pt></pt> | ||
<pd></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values" props="android" conkeyref="SetJsonParameter_Config/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
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.