Browse Source

更新版本到 1.5.9

ChangeLog
1. 新增 updateRecordStreams 及 updateRelayStreams 的 replace 操作类型,用于完整替换(切换)录制/转推的流
kevin.song 5 years ago
parent
commit
1fb7ab538e
4 changed files with 8 additions and 8 deletions
  1. 2 2
      README.md
  2. 3 3
      lib/index.js
  3. 1 1
      package.json
  4. 2 2
      types/index.d.ts

+ 2 - 2
README.md

@@ -1937,8 +1937,8 @@ UpdateMixStreamsOptions 类型,类型说明
 
 ```
 {
-  type: UpdateMixStreamsType    // 必传,操作类型,UpdateMixStreamsType 值为 'add' | 'remove' 之一,分别为添加新流进行录制,移除录制中的部分流
-  streams: MixStream            // 必传,指定需要被添加或移除的流,
+  type: UpdateMixStreamsType    // 必传,操作类型,UpdateMixStreamsType 值为 'add' | 'remove' | 'replace' 之一,分别对应:'add' - 添加新流进行录制/转推,'remove' - 移除录制/转推中的部分流,'replace' - 用新流替换掉正在录制/转推的流,即移除录制/转推中全部的流并添加新流进行录制/转推
+  streams: MixStream[]          // 必传,MixStream 类型的数组,可指定需要被添加、移除的流或替换的流
 }
 ```
 

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.5.8",
+  "version": "1.5.9",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "repository": {

+ 2 - 2
types/index.d.ts

@@ -306,7 +306,7 @@ export interface RecordResult {
   FileName?: string;
 }
 
-declare type UpdateMixStreamsType = 'add' | 'remove';
+declare type UpdateMixStreamsType = 'add' | 'remove' | 'replace';
 
 export interface UpdateMixStreamsOptions {
   type: UpdateMixStreamsType;
@@ -335,7 +335,7 @@ export interface RelayResult {
   PushURL?: string[];
 }
 
-declare type UpdateRelayPushURLType = 'add' | 'remove';
+declare type UpdateRelayPushURLType = 'add' | 'remove' | 'replace';
 
 export interface UpdateRelayPushURLOptions {
   type: UpdateRelayPushURLType;