fix(cast): add unsupported state

This commit is contained in:
2026-07-16 23:28:36 +02:00
parent 31bd0adcef
commit 8656fb8068
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -182,8 +182,7 @@ export const stateMapper = {
if (!r) return "unavailable";
if (r.remotePlaybackState === "connecting") return "connecting";
if (r.remotePlaybackState === "connected") return "connected";
if (r.remotePlaybackAvailability === "available") return "available";
return "unavailable";
return r.remotePlaybackAvailability
}),
};
+2 -1
View File
@@ -43,7 +43,8 @@ export type CastStatus =
| "connecting"
| "connected"
| "available"
| "unavailable";
| "unavailable"
| "unsupported";
export interface Track {
readonly id: string;