diff --git a/dita/RTC-NG/API/api_player_getposition.dita b/dita/RTC-NG/API/api_player_getposition.dita new file mode 100644 index 00000000000..a990a11f356 --- /dev/null +++ b/dita/RTC-NG/API/api_player_getposition.dita @@ -0,0 +1,79 @@ + + + + <ph keyref="GetPosition"/> + 获取当前的播放位置。 + + + + + + + + +
+

+ public long getPosition() throws RteException + + - (uint64_t)getPosition:(AgoraRteError * _Nullable)error; + uint64_t GetPosition(Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

该方法用于获取当前播放的时间位置,单位为毫秒。

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + error + err + 输出参数,表示错误信息。可能返回以下 AgoraRteErrorCode: +
    +
  • :调用成功。
  • +
    • +
    • 对应的内部 AgoraRtePlayer 对象已被销毁或无效。
    • +
    • 打开的是 RTE URL,不支持调用 。详见
    • +
    +
  • +
+
+ 状态或错误信息,详见 。 +可能的错误码包括: +
    +
  • :调用成功。
  • +
    • +
    • 对应的内部 对象已被销毁或无效。
    • +
    • 打开的是 RTE URL,不支持调用
    • +
    +
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回当前的播放位置,单位为毫秒。

+

方法调用成功,返回当前播放位置,单位为毫秒。

+
+
+
diff --git a/dita/RTC-NG/API/api_player_seek.dita b/dita/RTC-NG/API/api_player_seek.dita new file mode 100644 index 00000000000..0b91426b5e0 --- /dev/null +++ b/dita/RTC-NG/API/api_player_seek.dita @@ -0,0 +1,84 @@ + + + + <ph keyref="Seek"/> + 跳转播放位置。 + + + + + + + + +
+

+ public void seek(long newTime) throws RteException + + - (BOOL)seek:(uint64_t)newTime error:(AgoraRteError * _Nullable)error; + bool Seek(uint64_t new_time, Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + new_time + newTime + 要跳转到的播放位置,单位为毫秒。 + 你希望跳转到的播放位置。 + 要跳转到的新播放位置。 + + + err + error + 输出参数,用于返回跳转失败时的错误信息。详见 + 输出参数,表示错误码: +
    +
  • :成功。
  • +
    • +
    • 对应的内部 对象已被销毁或无效。
    • +
    • 打开的 URL 是 RTE URL,不支持跳转播放位置。详见
    • +
    +
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • :跳转成功。
  • +
  • :跳转失败。
  • +
+

+

    +
  • :跳转成功。
  • +
  • :跳转失败。你可以通过 参数查看具体错误信息。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_player_switchwithurl.dita b/dita/RTC-NG/API/api_player_switchwithurl.dita new file mode 100644 index 00000000000..962e0cba886 --- /dev/null +++ b/dita/RTC-NG/API/api_player_switchwithurl.dita @@ -0,0 +1,94 @@ + + + + <ph keyref="SwitchWithUrl"/> + 在播放过程中切换至新的 URL。 + + + + + + + + +
+

+ public void switchWithUrl(String url, boolean syncPts, AsyncCallback callback) + + - (void)switchWithUrl:(NSString * _Nonnull)url syncPts:(BOOL)syncPts cb:(void (^_Nullable)(AgoraRteError* _Nullable err))cb; + void SwitchWithUrl(const char* url, bool sync_pts, std::function&lt;void(rte::Error* err)&gt; cb) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

请在 SDK 返回播放器状态为 时调用该方法。

+ 该方法仅在播放器打开的是非 URL 时有效。请在 SDK 返回播放器状态为 时调用该方法。 + 该方法仅在播放器打开的是非 RTE URL 时有效。 +
+
+ 调用限制 +

无。

+
+
+ 参数 + + + url + 要切换的 URL 资源。 + 要切换的目标 URL。 + 要切换的新 URL。 + + + syncPts + syncPts +
    +
  • :同步播放位置。
  • +
  • :(默认)不同步播放位置。
  • +
+
+
    +
  • :切换后同步播放位置(单位为毫秒)。
  • +
  • :(默认)切换后不同步播放位置。
  • +
+
+
+ + callback + cb + 异步回调,用于通知切换操作的结果,详见 + 异步通知切换操作结果的回调。你可以通过该回调的 err 参数得知操作的结果或错误码信息,详见 + 异步通知切换操作结果的回调。你可以通过该回调的 err 参数得知操作的结果或错误码信息,详见 。 + +err 的可能取值包括: +
    +
  • :切换成功。
  • +
  • :切换失败。
  • +
  • :传入的 URL 为空或格式非法。
  • +
    • +
    • 对应的内部 对象已被销毁或无效。
    • +
    • 当前打开的是 URL,不支持切换。
    • +
    +
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_getloopcount.dita b/dita/RTC-NG/API/api_playerconfig_getloopcount.dita new file mode 100644 index 00000000000..68d0aff1b25 --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_getloopcount.dita @@ -0,0 +1,65 @@ + + + + <ph keyref="GetLoopCount"/> + 获取媒体文件的循环次数参数。 + + + + + + + + +
+

+ public int getLoopCount() throws RteException + + - (int32_t)loopCount:(AgoraRteError * _Nullable)error; + int32_t GetLoopCount(Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + err + error + 输出参数,状态或错误信息,详见 。 +
    +
  • :表示成功。
  • +
+
+ 输出参数,表示错误信息。详见 +
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回媒体文件的循环次数。

+

方法调用成功,返回媒体文件的循环播放次数。

+

方法调用成功时,返回媒体文件的循环播放次数。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_getplaybackspeed.dita b/dita/RTC-NG/API/api_playerconfig_getplaybackspeed.dita new file mode 100644 index 00000000000..222fc8d4994 --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_getplaybackspeed.dita @@ -0,0 +1,64 @@ + + + + <ph keyref="GetPlaybackSpeed"/> + 获取播放速度参数。 + + + + + + + + +
+

+ public int getPlaybackSpeed() throws RteException + + - (int32_t)playbackSpeed:(AgoraRteError * _Nullable)error; + int32_t GetPlaybackSpeed(Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + err + error + 状态或错误信息,详见 。 +
    +
  • :表示成功。
  • +
+
+ 输出参数,表示错误信息。详见 +
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回播放速度的值。

+

方法调用成功,返回播放速度的数值。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_getplayoutvolume.dita b/dita/RTC-NG/API/api_playerconfig_getplayoutvolume.dita new file mode 100644 index 00000000000..98374c92eba --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_getplayoutvolume.dita @@ -0,0 +1,63 @@ + + + + <ph keyref="GetPlayoutVolume"/> + 获取播放器的播放音量。 + + + + + + + + +
+

+ public int getPlayoutVolume() throws RteException + + - (int32_t)playoutVolume:(AgoraRteError * _Nullable)error; + int32_t GetPlayoutVolume(Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + err + error + 状态或错误信息,详见 。 +
    +
  • :表示成功。
  • +
+
+ 输出参数,返回错误信息。详见 +
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回播放器的音量值。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_setloopcount.dita b/dita/RTC-NG/API/api_playerconfig_setloopcount.dita new file mode 100644 index 00000000000..fd2ae0a12d1 --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_setloopcount.dita @@ -0,0 +1,86 @@ + + + + <ph keyref="SetLoopCount"/> + 设置媒体文件的循环播放次数。 + + + + + + + + +
+

+ public void setLoopCount(int count) throws RteException + + - (void)setLoopCount:(int32_t)count error:(AgoraRteError * _Nullable)error; + void SetLoopCount(int32_t count, Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

你可以通过该方法设置媒体文件的循环播放次数,包括播放一次、两次,或无限循环播放,直到调用 方法停止播放。

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + count + 媒体文件的循环播放次数。 +
    +
  • 0:播放一次。
  • +
  • 1:播放两次。
  • +
  • -1:无限循环播放,直到调用 方法停止播放。
  • +
+
+ 媒体文件的循环播放次数。 +
    +
  • 0:播放一次。
  • +
  • 1:播放两次。
  • +
  • -1:无限循环播放,直到调用 方法停止播放。
  • +
+
+ 媒体文件的循环播放次数。 +
    +
  • 0:播放一次。
  • +
  • 1:播放两次。
  • +
  • -1:无限循环播放,直到调用 停止播放。
  • +
+
+
+ + error + err + 输出参数,返回错误信息。详见 + 状态或错误信息,详见 。 +
    +
  • :成功。
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_setplaybackspeed.dita b/dita/RTC-NG/API/api_playerconfig_setplaybackspeed.dita new file mode 100644 index 00000000000..0019cab1d91 --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_setplaybackspeed.dita @@ -0,0 +1,69 @@ + + + + <ph keyref="SetPlaybackSpeed"/> + 设置播放速度参数。 + + + + + + + + +
+

+ public void setPlaybackSpeed(int speed) throws RteException + + - (void)setPlaybackSpeed:(int32_t)speed error:(AgoraRteError * _Nullable)error; + void SetPlaybackSpeed(int32_t speed, Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

你可以在调用 方法之后调用此方法。

+ 你可以在调用 方法之后调用此方法。 +
+
+ 调用限制 +

无。

+
+
+ 参数 + + + speed + 播放速度。取值范围为 [50, 400]。 + 播放速度,取值范围为 [50, 400]。 + + + error + err + 输出参数,用于返回错误信息,详见 + 状态或错误信息,详见 。 +
    +
  • :调用成功。
  • +
  • speed 参数设置为非法值。
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+
+
+
diff --git a/dita/RTC-NG/API/api_playerconfig_setplayoutvolume.dita b/dita/RTC-NG/API/api_playerconfig_setplayoutvolume.dita new file mode 100644 index 00000000000..414aec5c07f --- /dev/null +++ b/dita/RTC-NG/API/api_playerconfig_setplayoutvolume.dita @@ -0,0 +1,75 @@ + + + + <ph keyref="SetPlayoutVolume"/> + 设置播放音量参数。 + + + + + + + + +
+

+ public void setPlayoutVolume(int volume) throws RteException + + - (void)setPlayoutVolume:(int32_t)volume error:(AgoraRteError * _Nullable)error; + void SetPlayoutVolume(int32_t volume, Error *err = nullptr) + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

你可以通过该方法设置播放音量,取值范围为 [0, 400]。

+
+
+ 调用限制 +

无。

+
+
+ 参数 + + + volume + 播放器的音量值。取值范围为 [0, 400]。 + 要设置的播放音量,取值范围为 [0, 400]。 + 要设置的音量值,取值范围为 [0, 400]。 + + + error + err + 输出参数,返回错误信息,详见 。 +
    +
  • :设置成功。
  • +
  • :音量参数非法。
  • +
+
+ 状态或错误信息,详见 。 +可能的错误码包括: +
    +
  • :设置成功。
  • +
  • :音量参数设置为非法值。
  • +
+
+
+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_abrsubscriptionlayer.dita b/dita/RTC-NG/API/api_playerinfo_abrsubscriptionlayer.dita new file mode 100644 index 00000000000..07787c3d04c --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_abrsubscriptionlayer.dita @@ -0,0 +1,57 @@ + + + + <ph keyref="AbrSubscriptionLayer"/> + 获取当前订阅的视频层级。 + + + + + + + + +
+

+ public Constants.AbrSubscriptionLayer abrSubscriptionLayer() + + + AbrSubscriptionLayer AbrSubscriptionLayer() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

该字段仅在打开 RTE URL 时有效。

+ 该字段仅在你打开 RTE URL 时有效。 +
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • 方法调用成功,返回当前订阅的视频层级,详见
  • +
+

+

    +
  • 方法调用成功,返回 对象,详见
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_audiobitspersample.dita b/dita/RTC-NG/API/api_playerinfo_audiobitspersample.dita new file mode 100644 index 00000000000..bd0414072a0 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_audiobitspersample.dita @@ -0,0 +1,50 @@ + + + + <ph keyref="AudioBitsPerSample"/> + 获取每个音频采样点的位数。 + + + + + + + + +
+

+ public int audioBitsPerSample() + + + int AudioBitsPerSample() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+ 该字段仅在打开非 RTE URL 时有效。 +
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回每个音频采样点的位数,单位为 bit。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_audiochannels.dita b/dita/RTC-NG/API/api_playerinfo_audiochannels.dita new file mode 100644 index 00000000000..1e9cf951905 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_audiochannels.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="AudioChannels"/> + 获取音频的声道数量。 + + + + + + + + +
+

+ + + + int AudioChannels() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回音频的声道数量。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_audiosamplerate.dita b/dita/RTC-NG/API/api_playerinfo_audiosamplerate.dita new file mode 100644 index 00000000000..27a0ad35f60 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_audiosamplerate.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="AudioSampleRate"/> + 获取音频采样率。 + + + + + + + + +
+

+ public int audioSampleRate() + + + int AudioSampleRate() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回音频采样率,单位为 Hz。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_currenturl.dita b/dita/RTC-NG/API/api_playerinfo_currenturl.dita new file mode 100644 index 00000000000..7d8d5ef8c5c --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_currenturl.dita @@ -0,0 +1,53 @@ + + + + <ph keyref="CurrentUrl"/> + 获取当前正在播放的 URL。 + + + + + + + + +
+

+ public String currentUrl() + + + std::string CurrentUrl() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • 方法调用成功时,返回当前正在播放的 URL。
  • +
  • 方法调用失败,返回空字符串。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_duration.dita b/dita/RTC-NG/API/api_playerinfo_duration.dita new file mode 100644 index 00000000000..eba6e0c89aa --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_duration.dita @@ -0,0 +1,51 @@ + + + + <ph keyref="Duration"/> + 获取当前媒体资源的时长。 + + + + + + + + +
+

+ public long duration() + + + size_t Duration() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+ 仅在播放本地媒体文件或点播流时有效。 + 该方法仅在播放本地媒体文件或点播流时有效。 +
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回当前媒体资源的时长,单位为毫秒。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_hasaudio.dita b/dita/RTC-NG/API/api_playerinfo_hasaudio.dita new file mode 100644 index 00000000000..0700327ee62 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_hasaudio.dita @@ -0,0 +1,58 @@ + + + + <ph keyref="HasAudio"/> + 判断媒体资源中是否包含音频流。 + + + + + + + + +
+

+ public boolean hasAudio() + + + bool HasAudio() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

表示 URL 源是否包含音频流。

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • :媒体资源中包含音频流。
  • +
  • :媒体资源中不包含音频流。
  • +
+

+

    +
  • :URL 源包含音频流。
  • +
  • :URL 源不包含音频流。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_hasvideo.dita b/dita/RTC-NG/API/api_playerinfo_hasvideo.dita new file mode 100644 index 00000000000..24274dc668e --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_hasvideo.dita @@ -0,0 +1,58 @@ + + + + <ph keyref="HasVideo"/> + 判断是否包含视频流。 + + + + + + + + +
+

+ public boolean hasVideo() + + + bool HasVideo() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • :URL 源中包含视频流。
  • +
  • :URL 源中不包含视频流。
  • +
+

+

    +
  • :URL 源包含视频流。
  • +
  • :URL 源不包含视频流。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_isaudiomuted.dita b/dita/RTC-NG/API/api_playerinfo_isaudiomuted.dita new file mode 100644 index 00000000000..26356019d24 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_isaudiomuted.dita @@ -0,0 +1,59 @@ + + + + <ph keyref="IsAudioMuted"/> + 判断播放器是否停止接收音频流。 + + + + + + + + +
+

+ public boolean isAudioMuted() + + + bool IsAudioMuted() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
自 v4.4.0 版本新增。
+
+
+

该方法用于判断播放器是否停止接收音频流。

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • :播放器已停止接收音频流。
  • +
  • :播放器仍在接收音频流。
  • +
+

+

    +
  • :停止接收音频流。
  • +
  • :继续接收音频流。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_isvideomuted.dita b/dita/RTC-NG/API/api_playerinfo_isvideomuted.dita new file mode 100644 index 00000000000..f94d5d0a2d7 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_isvideomuted.dita @@ -0,0 +1,60 @@ + + + + <ph keyref="IsVideoMuted"/> + 判断播放器是否停止接收视频流。 + + + + + + + + +
+

+ public boolean isVideoMuted() + + + bool IsVideoMuted() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
自 v4.4.0 版本新增。
+
+
+

+ IsVideoMuted 接口仅在打开 RTE URL 时有效。 +
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • :播放器已停止接收视频流。
  • +
  • :播放器仍在接收视频流。
  • +
+

+

    +
  • :停止接收视频流。
  • +
  • :继续接收视频流。
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_state.dita b/dita/RTC-NG/API/api_playerinfo_state.dita new file mode 100644 index 00000000000..20900383693 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_state.dita @@ -0,0 +1,52 @@ + + + + <ph keyref="State"/> + 获取当前播放器状态。 + + + + + + + + +
+

+ + + + RtePlayerState State() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

    +
  • 方法调用成功,返回当前播放器状态,详见
  • +
+

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_streamcount.dita b/dita/RTC-NG/API/api_playerinfo_streamcount.dita new file mode 100644 index 00000000000..828508470bd --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_streamcount.dita @@ -0,0 +1,51 @@ + + + + <ph keyref="StreamCount"/> + 获取当前播放源中的流的数量。 + + + + + + + + +
+

+ public int streamCount() + + + size_t StreamCount() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

该方法仅在打开非 RTE URL 时有效。

+ 该方法在打开非 RTE URL 时有效。 +
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回当前播放源中的流的数量。

+

方法调用成功,返回流的数量。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_videoheight.dita b/dita/RTC-NG/API/api_playerinfo_videoheight.dita new file mode 100644 index 00000000000..3214f9d0221 --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_videoheight.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="VideoHeight"/> + 获取视频分辨率高度。 + + + + + + + + +
+

+ public int videoHeight() + + + int VideoHeight() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回视频分辨率的高度,单位为像素。

+
+
+
diff --git a/dita/RTC-NG/API/api_playerinfo_videowidth.dita b/dita/RTC-NG/API/api_playerinfo_videowidth.dita new file mode 100644 index 00000000000..d57f927dbce --- /dev/null +++ b/dita/RTC-NG/API/api_playerinfo_videowidth.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="VideoWidth"/> + 获取视频分辨率宽度。 + + + + + + + + +
+

+ public int videoWidth() + + + int VideoWidth() const + + + + +

+
+
+
+ +
自从:
+
自 v4.5.1 版本新增。
+
+
+

+
+
+ 调用限制 +

无。

+
+
+ <ph keyref="return-section-title"/> +

方法成功调用时,无返回值;方法调用失败时,会抛出 异常,你需要捕获异常并进行处理。详见了解详情和解决建议。

+
    +
  • 0: 方法调用成功。
  • +
  • < 0: 方法调用失败。详见了解详情和解决建议。
  • +
+

方法调用成功,返回视频分辨率的宽度,单位为像素。

+
+
+
diff --git a/dita/RTC-NG/API/rtc_api_data_type.dita b/dita/RTC-NG/API/rtc_api_data_type.dita index 9965df3a56e..17ae48e1155 100644 --- a/dita/RTC-NG/API/rtc_api_data_type.dita +++ b/dita/RTC-NG/API/rtc_api_data_type.dita @@ -1,4 +1,4 @@ - + <ph keyref="typedef"/> @@ -328,7 +328,7 @@
  • -
  • +
  • @@ -385,12 +385,13 @@
  • -
  • +
  • @@ -453,9 +454,9 @@
  • -
  • -
  • +
  • +
  • @@ -463,22 +464,22 @@
  • -
  • +
  • -
  • +
  • -
  • +
  • @@ -500,27 +501,30 @@
  • -
  • +
  • - +
  • -
  • +
  • @@ -574,9 +578,9 @@
  • -
  • -
  • +
  • +
  • @@ -586,15 +590,15 @@
  • -
  • +
  • -
  • +
  • @@ -617,10 +621,8 @@
  • -
  • -
  • - + -
    + \ No newline at end of file diff --git a/dita/RTC-NG/RTC_NG_API_Android.ditamap b/dita/RTC-NG/RTC_NG_API_Android.ditamap index 85000530fa2..14192b00fd9 100644 --- a/dita/RTC-NG/RTC_NG_API_Android.ditamap +++ b/dita/RTC-NG/RTC_NG_API_Android.ditamap @@ -1,4 +1,4 @@ - + Android API Reference @@ -58,10 +58,23 @@ + + + + + + + + + + + + + @@ -72,16 +85,6 @@ - - - - - - - - - - @@ -95,8 +98,26 @@ + + + + + + + + + + + + + + + + + + - + @@ -704,7 +725,7 @@ - + @@ -822,4 +843,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/RTC_NG_API_CPP.ditamap b/dita/RTC-NG/RTC_NG_API_CPP.ditamap index c9388d308d1..8f099857914 100644 --- a/dita/RTC-NG/RTC_NG_API_CPP.ditamap +++ b/dita/RTC-NG/RTC_NG_API_CPP.ditamap @@ -1,4 +1,4 @@ - + C++ API Reference for All Platforms @@ -59,8 +59,22 @@ + + + + + + + + + + + + + + @@ -71,16 +85,6 @@ - - - - - - - - - - @@ -94,8 +98,27 @@ + + + + + + + + + + + + + + + + + + + - + @@ -886,4 +909,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/RTC_NG_API_iOS.ditamap b/dita/RTC-NG/RTC_NG_API_iOS.ditamap index 03130ad447d..49b76f45445 100644 --- a/dita/RTC-NG/RTC_NG_API_iOS.ditamap +++ b/dita/RTC-NG/RTC_NG_API_iOS.ditamap @@ -1,4 +1,4 @@ - + iOS API Reference @@ -55,30 +55,24 @@ + + + + + - - - - - - - - - - - @@ -92,8 +86,23 @@ + + + + + + + + + + + + + + + - + @@ -808,4 +817,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/RTC_NG_API_macOS.ditamap b/dita/RTC-NG/RTC_NG_API_macOS.ditamap index 27091a429a0..c1879650332 100644 --- a/dita/RTC-NG/RTC_NG_API_macOS.ditamap +++ b/dita/RTC-NG/RTC_NG_API_macOS.ditamap @@ -1,4 +1,4 @@ - + @@ -50,30 +50,24 @@ + + + + + - - - - - - - - - - - @@ -87,8 +81,23 @@ + + + + + + + + + + + + + + + - + @@ -759,4 +768,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-cpp.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-cpp.ditamap index efb1ab271ab..4014dcefc21 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-cpp.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-cpp.ditamap @@ -1,4 +1,4 @@ - + Keys RTC NG C++ API @@ -1310,6 +1310,167 @@ + + + + State + + + + + + + Duration + + + + + + + StreamCount + + + + + + + HasAudio + + + + + + + HasVideo + + + + + + + IsAudioMuted + + + + + + + IsVideoMuted + + + + + + + VideoHeight + + + + + + + VideoWidth + + + + + + + AbrSubscriptionLayer + + + + + + + AudioSampleRate + + + + + + + AudioChannels + + + + + + + AudioBitsPerSample + + + + + + + CurrentUrl + + + + + + + SetPlaybackSpeed + + + + + + + GetPlaybackSpeed + + + + + + + SetPlayoutVolume + + + + + + + GetPlayoutVolume + + + + + + + SetLoopCount + + + + + + + GetLoopCount + + + + + + + SwitchWithUrl + + + + + + + Seek + + + + + + + GetPosition + + + @@ -14240,7 +14401,7 @@ - C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg + C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg @@ -14336,4 +14497,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap index aa9deff270c..db8d3e99079 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap @@ -1,4 +1,4 @@ - + Keys RTC NG Objective-C API @@ -1207,6 +1207,69 @@ + + + + setPlaybackSpeed + + + + + + + playbackSpeed + + + + + + + setPlayoutVolume + + + + + + + playoutVolume + + + + + + + setLoopCount + + + + + + + loopCount + + + + + + + switchWithUrl + + + + + + + seek + + + + + + + getPosition + + + @@ -6003,7 +6066,14 @@ - + + + + AgoraRtePlayerInfo + + + + @@ -13296,4 +13366,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap index 2454503264f..3f0587fbe70 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap @@ -1,4 +1,4 @@ - + Keys RTC NG Java API @@ -1253,6 +1253,153 @@ + + + + duration + + + + + + + streamCount + + + + + + + hasAudio + + + + + + + hasVideo + + + + + + + isAudioMuted + + + + + + + isVideoMuted + + + + + + + videoHeight + + + + + + + videoWidth + + + + + + + abrSubscriptionLayer + + + + + + + audioSampleRate + + + + + + + audioBitsPerSample + + + + + + + currentUrl + + + + + + + setPlaybackSpeed + + + + + + + getPlaybackSpeed + + + + + + + setPlayoutVolume + + + + + + + getPlayoutVolume + + + + + + + setLoopCount + + + + + + + getLoopCount + + + + + + + switchWithUrl + + + + + + + seek + + + + + + + getPosition + + + @@ -13448,7 +13595,7 @@ - /storage/emulated/0/Android/data/<packagename>/files/example.jpg + /storage/emulated/0/Android/data/<packagename>/files/example.jpg @@ -13559,4 +13706,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap index 2acd7cb3804..ffdda0e8412 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap @@ -1,4 +1,4 @@ - + Keys RTC NG Objective-C API @@ -1164,6 +1164,69 @@ + + + + setPlaybackSpeed + + + + + + + playbackSpeed + + + + + + + setPlayoutVolume + + + + + + + playoutVolume + + + + + + + setLoopCount + + + + + + + loopCount + + + + + + + switchWithUrl + + + + + + + seek + + + + + + + getPosition + + + @@ -5614,7 +5677,14 @@ - + + + + AgoraRtePlayerInfo + + + + @@ -12749,4 +12819,4 @@ - + \ No newline at end of file diff --git a/dita/RTC-NG/config/relations-rtc-ng-api.ditamap b/dita/RTC-NG/config/relations-rtc-ng-api.ditamap index 1186ccb62ee..3508ae8468b 100644 --- a/dita/RTC-NG/config/relations-rtc-ng-api.ditamap +++ b/dita/RTC-NG/config/relations-rtc-ng-api.ditamap @@ -1,4 +1,4 @@ - + Relations @@ -2470,7 +2470,7 @@ - + @@ -3377,22 +3377,25 @@ + + + + + + - - - + - - + @@ -3404,9 +3407,15 @@ + + + + + + @@ -3442,4 +3451,4 @@ - + \ No newline at end of file