浏览代码

更新版本到 1.4.17

ChangeLog
1. 停止转推时,可指定需要停止转推的 URL
kevin.song 5 年之前
父节点
当前提交
8e5b8e270b
共有 4 个文件被更改,包括 5 次插入3 次删除
  1. 2 1
      README.md
  2. 1 1
      lib/index.js
  3. 1 1
      package.json
  4. 1 0
      types/index.d.ts

+ 2 - 1
README.md

@@ -1535,7 +1535,8 @@ client.stopMix(StopMixOptions, callback)
 
 ```
 {
-  type?: MixType  // 选传,MixType 为 'relay' | 'record' | 'relay-and-record' | 'update-config' 其中之一,分别代表 '转推' | '录制' | '录制并转推' | '更改设置',不传时,默认为 'record'
+  type?: MixType      // 选传,MixType 为 'relay' | 'record' | 'relay-and-record' 其中之一,分别代表 '转推' | '录制' | '录制并转推',不传时,默认为 'record'
+  pushURL?: String[]  // 字符串数组,若 type 为 relay 或 relay-and-record 时,可用此参数指定需要停止转推的 URL,或留空停止对所有 URL 的转推
 }
 ```
 

文件差异内容过多而无法显示
+ 1 - 1
lib/index.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "urtc-sdk",
-  "version": "1.4.16",
+  "version": "1.4.17",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "repository": {

+ 1 - 0
types/index.d.ts

@@ -232,6 +232,7 @@ export interface MixOptions {
 
 export interface StopMixOptions {
   type?: MixType            // 默认为 record
+  pushURL?: string[]        // 如果 type 为 relay 或 relay-and-record,需要指定停止对哪个 url 的转推,如果留空会停止对所有 url 的转推
 }
 
 export interface MixResult {