mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Fix supported media commands parsing
This commit is contained in:
@@ -54,15 +54,20 @@ export function convertSupportedMediaCommandsFlags(flags: _MediaCommand) {
|
|||||||
const supportedMediaCommands: string[] = [];
|
const supportedMediaCommands: string[] = [];
|
||||||
if (flags & _MediaCommand.PAUSE) {
|
if (flags & _MediaCommand.PAUSE) {
|
||||||
supportedMediaCommands.push(MediaCommand.PAUSE);
|
supportedMediaCommands.push(MediaCommand.PAUSE);
|
||||||
} else if (flags & _MediaCommand.SEEK) {
|
}
|
||||||
|
if (flags & _MediaCommand.SEEK) {
|
||||||
supportedMediaCommands.push(MediaCommand.SEEK);
|
supportedMediaCommands.push(MediaCommand.SEEK);
|
||||||
} else if (flags & _MediaCommand.STREAM_VOLUME) {
|
}
|
||||||
|
if (flags & _MediaCommand.STREAM_VOLUME) {
|
||||||
supportedMediaCommands.push(MediaCommand.STREAM_VOLUME);
|
supportedMediaCommands.push(MediaCommand.STREAM_VOLUME);
|
||||||
} else if (flags & _MediaCommand.STREAM_MUTE) {
|
}
|
||||||
|
if (flags & _MediaCommand.STREAM_MUTE) {
|
||||||
supportedMediaCommands.push(MediaCommand.STREAM_MUTE);
|
supportedMediaCommands.push(MediaCommand.STREAM_MUTE);
|
||||||
} else if (flags & _MediaCommand.QUEUE_NEXT) {
|
}
|
||||||
|
if (flags & _MediaCommand.QUEUE_NEXT) {
|
||||||
supportedMediaCommands.push("queue_next");
|
supportedMediaCommands.push("queue_next");
|
||||||
} else if (flags & _MediaCommand.QUEUE_PREV) {
|
}
|
||||||
|
if (flags & _MediaCommand.QUEUE_PREV) {
|
||||||
supportedMediaCommands.push("queue_prev");
|
supportedMediaCommands.push("queue_prev");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user