fix playWhenReady, prevent open stream with closed id

This commit is contained in:
svd 2021-10-29 10:57:48 +08:00
parent ebf628315c
commit 37fea5c772

View file

@ -154,6 +154,7 @@ export default {
if (value) {
this.$server.socket.emit('close_stream')
this.$store.commit('setStreamAudiobook', null)
this.$server.stream = null
if (this.$refs.audioPlayerMini) {
this.$refs.audioPlayerMini.terminateStream()
}