ソースを参照

更新版本到 2.0.0-beta.5

ChangeLog
1. 修复 ice 建连失败后,长时间无法取消发布或订阅的问题
2. 添加 audio-track-ended 事件
3. 加入房间失败,切换信令,提高加入房间成功率
4. 修复有机率订阅时流被移除而导致流异常的问题
5. windows 获取音频输入列表时,过滤掉 default 和 communications 设备,其他系统正常获取
6. 优化移动终端切后台时音频部分
poplark 4 年 前
コミット
21bab0365b

ファイルの差分が大きいため隠しています
+ 1 - 1
docs/classes/client.html


ファイルの差分が大きいため隠しています
+ 1 - 1
docs/classes/localstream.html


ファイルの差分が大きいため隠しています
+ 1 - 1
docs/classes/remotestream.html


ファイルの差分が大きいため隠しています
+ 1 - 1
docs/classes/stream.html


ファイルの差分が大きいため隠しています
+ 2 - 1
docs/index.html


+ 2 - 1
lib/index.d.ts

@@ -874,6 +874,7 @@ declare module '__@urtc/sdk-web/event' {
     *
     * **特别地,以下事件需在单条流上进行监听**
     * - screen-sharing-stopped - 屏幕共享流被中止,此时事件中的 data 为 {@link LocalStream} 本地流
+    * - audio-track-ended - 音频被中止,此时事件中的 data 为 {@link LocalStream} 本地流
     * - first-key-frame - 接收到远端流的首帧
     * @example
     * ```js
@@ -890,7 +891,7 @@ declare module '__@urtc/sdk-web/event' {
     * });
     * ```
     */
-  export type RtcStreamEventType = 'stream-added' | 'stream-removed' | 'stream-subscribed' | 'stream-published' | 'stream-reconnecting' | 'stream-reconnected' | 'mute-audio' | 'unmute-audio' | 'mute-video' | 'unmute-video' | 'first-key-frame' | 'screen-sharing-stopped';
+  export type RtcStreamEventType = 'stream-added' | 'stream-removed' | 'stream-subscribed' | 'stream-published' | 'stream-reconnecting' | 'stream-reconnected' | 'mute-audio' | 'unmute-audio' | 'mute-video' | 'unmute-video' | 'first-key-frame' | 'audio-track-ended' | 'screen-sharing-stopped';
   /**
     * Rtc 播放器事件类型:
     *

ファイルの差分が大きいため隠しています
+ 5 - 5
lib/index.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@urtc/sdk-web",
-  "version": "2.0.0-beta.4",
+  "version": "2.0.0-beta.5",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",