mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
615cc844ae
commit
b9598ffaa1
88 changed files with 366 additions and 501 deletions
19
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
19
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
|
@ -634,14 +634,13 @@
|
|||
|
||||
$(MediaController).on('playerchange', function (e, newPlayer, newTarget) {
|
||||
|
||||
if (currentDevice) {
|
||||
if (newTarget.id != currentDeviceId) {
|
||||
if (currentWebAppSession) {
|
||||
console.log('Disconnecting from chromecast');
|
||||
//currentDevice.disconnect();
|
||||
currentDevice = null;
|
||||
currentDeviceId = null;
|
||||
}
|
||||
if (newTarget.id != currentDeviceId) {
|
||||
if (currentWebAppSession) {
|
||||
console.log('Disconnecting from chromecast');
|
||||
//currentDevice.disconnect();
|
||||
cleanupSession();
|
||||
currentDevice = null;
|
||||
currentDeviceId = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -657,9 +656,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (!$.browser.safari) {
|
||||
document.addEventListener("resume", onResume, false);
|
||||
}
|
||||
document.addEventListener("resume", onResume, false);
|
||||
}
|
||||
|
||||
MediaController.registerPlayer(new chromecastPlayer());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue