mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 22:59:35 +02:00
Update collection/playlist play button to show pause when playing #1394, update collections to play local item if available
This commit is contained in:
parent
c79ecbb92e
commit
0520cbd538
33 changed files with 84 additions and 50 deletions
|
@ -113,12 +113,12 @@ export default {
|
|||
showPlayBtn() {
|
||||
return !this.isMissing && !this.isInvalid && (this.tracks.length || this.episode)
|
||||
},
|
||||
isStreaming() {
|
||||
isOpenInPlayer() {
|
||||
if (this.localLibraryItem && this.localEpisode && this.$store.getters['getIsMediaStreaming'](this.localLibraryItem.id, this.localEpisode.id)) return true
|
||||
return this.$store.getters['getIsMediaStreaming'](this.libraryItem.id, this.episodeId)
|
||||
},
|
||||
streamIsPlaying() {
|
||||
return this.$store.state.playerIsPlaying && this.isStreaming
|
||||
return this.$store.state.playerIsPlaying && this.isOpenInPlayer
|
||||
},
|
||||
playerIsStartingPlayback() {
|
||||
// Play has been pressed and waiting for native play response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue