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:
commit
9068dd52a6
1 changed files with 5 additions and 20 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue