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

fix sync job deletion

This commit is contained in:
Luke Pulverenti 2015-07-02 08:55:07 -04:00
parent 54afe9d0c2
commit d999c53f9f
9 changed files with 22 additions and 16 deletions

View file

@ -474,9 +474,9 @@
Logger.log('session.connect succeeded');
webAppSession.setWebAppSessionListener();
MediaController.setActivePlayer(PlayerName, convertDeviceToTarget(device));
currentDevice = device;
currentDeviceId = device.getId();
MediaController.setActivePlayer(PlayerName, convertDeviceToTarget(device));
$(castPlayer).trigger('connect');
@ -538,7 +538,8 @@
Logger.log('launchWebApp success. calling onSessionConnected');
if ($.browser.android) {
tryJoinWebSession(device, true, false);
//tryJoinWebSession(device, true, false);
setupWebAppSession(device, session, true);
} else {
setupWebAppSession(device, session, true);
}
@ -646,6 +647,8 @@
if (newTarget.id != currentDeviceId) {
if (currentWebAppSession) {
Logger.log('Disconnecting from chromecast');
Logger.log('New target info: ' + JSON.stringify(newTarget));
Logger.log('currentDeviceId: ' + currentDeviceId);
//currentDevice.disconnect();
cleanupSession();
currentDevice = null;