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

fix album save in metadata manager

This commit is contained in:
Luke Pulverenti 2015-05-18 18:23:03 -04:00
parent 9336922f29
commit adacfbbab3
15 changed files with 353 additions and 90 deletions

View file

@ -28,7 +28,7 @@
var PlayerName = 'Chromecast';
var messageNamespace = 'urn:x-cast:com.google.cast.mediabrowser.v3';
var messageNamespace = 'urn:x-cast:com.connectsdk';
var CastPlayer = function () {
@ -852,9 +852,8 @@
MediaController.registerPlayer(new chromecastPlayer());
$(MediaController).on('playerchange', function () {
if (MediaController.getPlayerInfo().name == PlayerName) {
$(MediaController).on('playerchange', function (e, newPlayer, newTarget) {
if (newPlayer.name == PlayerName) {
if (castPlayer.deviceState != DEVICE_STATE.ACTIVE && castPlayer.isInitialized) {
castPlayer.launchApp();
}