ChangeLog 1. 停止转推时,可指定需要停止转推的 URL
@@ -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,6 +1,6 @@
"name": "urtc-sdk",
- "version": "1.4.16",
+ "version": "1.4.17",
"description": "UCloud RTC javascript SDK",
"main": "lib/index.js",
"repository": {
@@ -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 {