mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
on chromecast playback stop still remember device volume/mute
This commit is contained in:
parent
9677981344
commit
49fd86d707
1 changed files with 7 additions and 0 deletions
|
@ -574,8 +574,15 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', '
|
||||||
|
|
||||||
events.trigger(instance, "playbackstop", [state]);
|
events.trigger(instance, "playbackstop", [state]);
|
||||||
|
|
||||||
|
var state = instance.lastPlayerData.PlayState || {};
|
||||||
|
var volume = state.VolumeLevel;
|
||||||
|
var mute = state.IsMuted;
|
||||||
|
|
||||||
// Reset this so the next query doesn't make it appear like content is playing.
|
// Reset this so the next query doesn't make it appear like content is playing.
|
||||||
instance.lastPlayerData = {};
|
instance.lastPlayerData = {};
|
||||||
|
instance.lastPlayerData.PlayState = {};
|
||||||
|
instance.lastPlayerData.PlayState.VolumeLevel = volume;
|
||||||
|
instance.lastPlayerData.PlayState.IsMuted = mute;
|
||||||
});
|
});
|
||||||
|
|
||||||
events.on(instance._castPlayer, "playbackprogress", function (e, data) {
|
events.on(instance._castPlayer, "playbackprogress", function (e, data) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue