feat: 回放, 新增播放/暂停
This commit is contained in:
parent
3a0e7dfd25
commit
b262b50dd6
|
@ -392,12 +392,12 @@ const handlePlay = (_startTime: any) => {
|
|||
playTimeNode.value.playByStartTime(_startTime);
|
||||
}
|
||||
} else if (playStatus.value == 1 && _startTime === playNowTime.value) {
|
||||
if (player.value.getVueInstance) {
|
||||
// player.value.getVueInstance().pause();
|
||||
if (player.value) {
|
||||
player.value.pause();
|
||||
}
|
||||
} else if (playStatus.value == 2 && _startTime === playNowTime.value) {
|
||||
if (player.value.getVueInstance) {
|
||||
// player.value.getVueInstance().play();
|
||||
if (player.value) {
|
||||
player.value.play();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue