@besovideo/webrtc-player 0.8.20 → 0.8.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -92,7 +92,7 @@ instance.setPuOption({
92
92
  });
93
93
  // setApiPrefix 更改请求时的url前缀
94
94
  instance.setApiPrefix("/测试改前缀");
95
- // open 异步 先关闭再开始建立连接 (可选参数: muted:boolean = false 是否静音打开)
95
+ // open 异步 先关闭再开始建立连接 (可选参数: muted:boolean = false 是否静音打开,可选参数: protocol = type 选择协议(type = "auto" | "webrtc" | "ws-bvrtc") 不填默认为auto)
96
96
  instance.open();
97
97
  // close 异步 释放dialog 并关闭 当前的 peer connection
98
98
  instance.close();
@@ -170,6 +170,9 @@ const { instance } = Intercom({
170
170
  // (可选) 指定请求url的前缀 方便代理请求
171
171
  // apiPrefix: "/test_api/prefix",
172
172
  });
173
+
174
+ // open 异步 先关闭再开始建立连接 (可选参数: protocol = type 选择协议(type = "auto" | "webrtc" | "ws-bvrtc") 不填默认为auto)
175
+ install.open(type);
173
176
  ```
174
177
 
175
178
  **会议**
@@ -203,6 +206,9 @@ const { instance } = Conference({
203
206
  // (可选) 指定请求url的前缀 方便代理请求
204
207
  // apiPrefix: "/test_api/prefix",
205
208
  });
209
+
210
+ // open 异步 先关闭再开始建立连接 (可选参数: protocol = type 选择协议(type = "auto" | "webrtc" | "ws-bvrtc") 不填默认为auto)
211
+ install.open(type);
206
212
  ```
207
213
 
208
214
  **Vue 示例**