mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 05:15:22 +02:00
Update:Handle multiple sessions open, sync when paused, show alert of multiple sessions open when both are playing #1660
This commit is contained in:
@@ -6,6 +6,7 @@ export const state = () => ({
|
||||
Source: null,
|
||||
versionData: null,
|
||||
serverSettings: null,
|
||||
playbackSessionId: null,
|
||||
streamLibraryItem: null,
|
||||
streamEpisodeId: null,
|
||||
streamIsPlaying: false,
|
||||
@@ -150,6 +151,9 @@ export const mutations = {
|
||||
if (!settings) return
|
||||
state.serverSettings = settings
|
||||
},
|
||||
setPlaybackSessionId(state, playbackSessionId) {
|
||||
state.playbackSessionId = playbackSessionId
|
||||
},
|
||||
setMediaPlaying(state, payload) {
|
||||
if (!payload) {
|
||||
state.streamLibraryItem = null
|
||||
|
||||
Reference in New Issue
Block a user