Browse Source

更新版本到 1.6.8

ChangeLog
1. 新增 error-notify 事件,通知 mute/unmute 频繁操作时的错误
2. 修复 Play video 时,有可能打印告警日志的问题
kevin.song 5 years ago
parent
commit
597e31575b
4 changed files with 14 additions and 7 deletions
  1. 4 1
      README.md
  2. 6 2
      lib/index.d.ts
  3. 3 3
      lib/index.js
  4. 1 1
      package.json

File diff suppressed because it is too large
+ 4 - 1
README.md


+ 6 - 2
lib/index.d.ts

@@ -295,7 +295,7 @@ declare module '__urtc-sdk/resolutions' {
 }
 
 declare module '__urtc-sdk/version' {
-  export const version = "1.6.7";
+  export const version = "1.6.8";
 }
 
 declare module '__urtc-sdk/token' {
@@ -316,7 +316,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';
+  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 ConnectionState = 'OPEN' | 'CONNECTING' | 'CLOSING' | 'RECONNECTING' | 'CLOSED';
   export type WaterMarkPosition = 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
   export type WaterMarkType = 'time' | 'image' | 'text';
@@ -605,6 +605,10 @@ declare module '__urtc-sdk/types' {
     code: string;
     message: string;
   }
+  export interface ErrorNotification {
+    code: string;
+    message: string;
+  }
   export interface AudioVolume {
     sid: string;
     uid: string;

File diff suppressed because it is too large
+ 3 - 3
lib/index.js


+ 1 - 1
package.json

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