Android cleaning up chromecast player and more failed attempts

This commit is contained in:
advplyr 2022-04-10 16:46:09 -05:00
parent e5c8d5d4d4
commit ef65b4c278
7 changed files with 112 additions and 51 deletions

View file

@ -109,7 +109,7 @@ export default {
playbackSession: null,
// Others
showChapterModal: false,
showCastBtn: false,
showCastBtn: true,
showFullscreen: false,
totalDuration: 0,
currentPlaybackRate: 1,
@ -455,15 +455,9 @@ export default {
}
this.seek(time)
},
playPauseClick() {
async playPauseClick() {
if (this.isLoading) return
if (this.isPaused) {
console.log('playPause PLAY')
this.play()
} else {
console.log('playPause PAUSE')
this.pause()
}
this.isPlaying = !!((await AbsAudioPlayer.playPause()) || {}).playing
},
play() {
AbsAudioPlayer.playPlayer()