ソースを参照

更新版本到 1.6.17

ChangeLog
1. 修复 iOS 14.2.1 的 safari 14.0.1 推流后黑屏的问题
2. 修复 firefox 浏览器上切换设备导致画面卡住的问题
3. 修复 getLocalStreams 中存在未初始化的流问题
4. 修复弱网环境下重连异常的问题
5. 优化 mute/unmute,防止重复调用 mute/unmute 的问题
6. 优化与服务器间用户及流信息同步问题
7. 其他内部优化
kevin.song 5 年 前
コミット
136d1ce9c3
3 ファイル変更10 行追加7 行削除
  1. 5 2
      lib/index.d.ts
  2. 4 4
      lib/index.js
  3. 1 1
      package.json

+ 5 - 2
lib/index.d.ts

@@ -52,9 +52,11 @@ declare module '__urtc-sdk/logger' {
     info(...args: any[]): void;
     warn(...args: any[]): void;
     error(...args: any[]): void;
+    report(...args: any[]): void;
     onLog({}: {}): void;
     onWarn({}: {}): void;
     onError({}: {}): void;
+    onReport({}: {}): void;
   }
   const _default: Logger;
   export default _default;
@@ -81,6 +83,7 @@ declare module '__urtc-sdk/client' {
     stopRecording(onSuccess?: () => void, onFailure?: (data?: any) => void): void;
     getUser(): User | undefined;
     getUsers(): User[];
+    sync(cb: (err?: Error) => void): void;
     getStream(streamId?: string): Stream | undefined;
     getLocalStreams(): Stream[];
     getRemoteStreams(): Stream[];
@@ -295,7 +298,7 @@ declare module '__urtc-sdk/resolutions' {
 }
 
 declare module '__urtc-sdk/version' {
-  export const version = "1.6.16";
+  export const version = "1.6.17";
 }
 
 declare module '__urtc-sdk/token' {
@@ -316,7 +319,7 @@ declare module '__urtc-sdk/types' {
   export type RoomType = 'rtc' | 'live';
   export type UserRole = 'pull' | 'push' | 'push-and-pull';
   export type DeviceType = 'audio' | 'video';
-  export type EventType = 'user-added' | 'user-removed' | 'stream-added' | 'stream-removed' | 'stream-published' | 'stream-subscribed' | 'mute-video' | 'unmute-video' | 'mute-audio' | 'unmute-audio' | 'screenshare-stopped' | 'connection-state-change' | 'kick-off' | 'network-quality' | 'stream-reconnected' | 'record-notify' | 'relay-notify' | 'volume-indicator' | 'error-notify';
+  export type EventType = 'user-added' | 'user-removed' | 'stream-added' | 'stream-removed' | 'stream-published' | 'stream-subscribed' | 'mute-video' | 'unmute-video' | 'mute-audio' | 'unmute-audio' | 'screenshare-stopped' | 'connection-state-change' | 'kick-off' | 'network-quality' | 'stream-reconnected' | 'record-notify' | 'relay-notify' | 'volume-indicator' | 'error-notify' | 'stream-playing' | 'stream-paused';
   export type ConnectionState = 'OPEN' | 'CONNECTING' | 'CLOSING' | 'RECONNECTING' | 'CLOSED';
   export type WaterMarkPosition = 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
   export type WaterMarkType = 'time' | 'image' | 'text';

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


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "urtc-sdk",
-  "version": "1.6.16",
+  "version": "1.6.17",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",