mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add fallback defaults to volume/mute if null on playbackstop
This commit is contained in:
parent
49fd86d707
commit
82d7b0eefb
@ -575,8 +575,8 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', '
|
||||
events.trigger(instance, "playbackstop", [state]);
|
||||
|
||||
var state = instance.lastPlayerData.PlayState || {};
|
||||
var volume = state.VolumeLevel;
|
||||
var mute = state.IsMuted;
|
||||
var volume = state.VolumeLevel || 0.5;
|
||||
var mute = state.IsMuted || false;
|
||||
|
||||
// Reset this so the next query doesn't make it appear like content is playing.
|
||||
instance.lastPlayerData = {};
|
||||
|
Loading…
Reference in New Issue
Block a user