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:
parent
54afe9d0c2
commit
d999c53f9f
9 changed files with 22 additions and 16 deletions
7
dashboard-ui/cordova/chromecast.js
vendored
7
dashboard-ui/cordova/chromecast.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue