1
0
Fork 0
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:
Luke Pulverenti 2015-08-30 13:26:30 -04:00
parent f0f5c26a2c
commit c80c66b498
10 changed files with 258 additions and 296 deletions

View file

@ -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 = {};
}
}
});