确保音频输出改变时能暂停播放

pull/930/merge
lyswhut 2022-03-06 21:57:32 +08:00
parent 6aed9dfb9f
commit 34febf4949
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ export default ({ setting }) => {
setting.value.player.isMediaDeviceRemovedStopPlay &&
isPlay.value &&
device.label != prevDeviceLabel
) window.eventHub.emit(eventPlayerNames.setPause)
) {
global.isPlayedStop = true
window.eventHub.emit(eventPlayerNames.setPause)
}
}
const handleMediaListChange = async() => {