mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update player selection dialog
This commit is contained in:
parent
f0f5c26a2c
commit
c80c66b498
10 changed files with 258 additions and 296 deletions
15
dashboard-ui/cordova/chromecast.js
vendored
15
dashboard-ui/cordova/chromecast.js
vendored
|
@ -282,7 +282,8 @@
|
|||
"SetAudioStreamIndex",
|
||||
"SetSubtitleStreamIndex",
|
||||
"DisplayContent",
|
||||
"SetRepeatMode"
|
||||
"SetRepeatMode",
|
||||
"EndSession"
|
||||
];
|
||||
|
||||
return target;
|
||||
|
@ -664,6 +665,17 @@
|
|||
}
|
||||
};
|
||||
|
||||
self.endSession = function () {
|
||||
|
||||
if (currentDevice) {
|
||||
currentDevice.disconnect();
|
||||
}
|
||||
|
||||
cleanupSession();
|
||||
currentDevice = null;
|
||||
currentDeviceId = null;
|
||||
};
|
||||
|
||||
$(MediaController).on('playerchange', function (e, newPlayer, newTarget) {
|
||||
|
||||
if (newTarget.id != currentDeviceId) {
|
||||
|
@ -675,7 +687,6 @@
|
|||
cleanupSession();
|
||||
currentDevice = null;
|
||||
currentDeviceId = null;
|
||||
self.lastPlayerData = {};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue