Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b98675

Browse files
committed
[CHG]支持切换播放地址-文档
1 parent 763b993 commit 3b98675

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ import EZUIKit from 'ezuikit-js';
4646
> 示例: 停止播放
4747
4848
```
49-
player.stop();
49+
1. player.stop();
50+
51+
2. player.stop()
52+
.then(()=>{
53+
console.log("执行播放成功后其他动作");
54+
});
55+
5056
```
5157
> 示例: 执行播放(自动播放为false,自定义触发播放/切换播放地址)
5258
@@ -61,14 +67,14 @@ import EZUIKit from 'ezuikit-js';
6167
切换地址播放(注意需要先执行stop方法停止上次取流)
6268

6369
```
64-
player.stop
70+
player.stop()
6571
.then(()=>{
6672
player.play('ezopen://open.ys7.com/{其他设备}/{其他通道}.live');
6773
});
6874
6975
// 其他账号下设备
7076
71-
player.stop
77+
player.stop()
7278
.then(()=>{
7379
player.play({url:'ezopen://open.ys7.com/{其他设备}/{其他通道}.live',accessToken: 'xxxx'});
7480
});

0 commit comments

Comments
 (0)