1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2015-06-19 00:23:55 -04:00
parent 615cc844ae
commit b9598ffaa1
88 changed files with 366 additions and 501 deletions

View file

@ -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());