mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hls updates
This commit is contained in:
parent
bbdbdf346e
commit
9fc4c86111
19 changed files with 255 additions and 246 deletions
11
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
11
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
|
@ -580,10 +580,13 @@
|
|||
|
||||
$(MediaController).on('playerchange', function (e, newPlayer, newTarget) {
|
||||
|
||||
if (newPlayer.name != PlayerName || newTarget.id != currentPairedDeviceId) {
|
||||
if (currentWebAppSession) {
|
||||
currentWebAppSession.disconnect();
|
||||
onDisconnected();
|
||||
if (currentPairedDeviceId) {
|
||||
if (newTarget.id != currentPairedDeviceId) {
|
||||
if (currentWebAppSession) {
|
||||
console.log('Disconnecting from chromecast');
|
||||
currentWebAppSession.disconnect();
|
||||
onDisconnected();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue