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

Merge pull request #6262 from 3flex/patch-1

Don't send unsupported commands to Cast receiver
This commit is contained in:
Bill Thornton 2025-01-13 11:54:13 -05:00 committed by GitHub
commit 9068dd52a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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