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

Don't send unsupported commands to Cast receiver

This commit is contained in:
Matthew Haughton 2024-10-28 11:25:50 +11:00 committed by Bill Thornton
parent 75ddb0accc
commit 588e9e38f7

View file

@ -678,11 +678,7 @@ class ChromecastPlayer {
'SetAudioStreamIndex', 'SetAudioStreamIndex',
'SetSubtitleStreamIndex', 'SetSubtitleStreamIndex',
'DisplayContent', 'DisplayContent',
'SetRepeatMode', 'SetRepeatMode'
'SetShuffleQueue',
'EndSession',
'PlayMediaSource',
'PlayTrailers'
] ]
}; };
} }
@ -890,13 +886,7 @@ class ChromecastPlayer {
} }
playTrailers(item) { playTrailers(item) {
this._castPlayer.sendMessage({ console.warn('[chromecastPlayer] Playing trailers is not supported.');
options: {
ItemId: item.Id,
ServerId: item.ServerId
},
command: 'PlayTrailers'
});
} }
setRepeatMode(mode) { setRepeatMode(mode) {
@ -909,12 +899,7 @@ class ChromecastPlayer {
} }
setQueueShuffleMode(value) { setQueueShuffleMode(value) {
this._castPlayer.sendMessage({ console.warn('[chromecastPlayer] Setting shuffle queue mode is not supported.');
options: {
ShuffleMode: value
},
command: 'SetShuffleQueue'
});
} }
toggleMute() { toggleMute() {