mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 05:36:17 +00:00
fix(cast): add unsupported state
This commit is contained in:
+1
-2
@@ -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
@@ -43,7 +43,8 @@ export type CastStatus =
|
||||
| "connecting"
|
||||
| "connected"
|
||||
| "available"
|
||||
| "unavailable";
|
||||
| "unavailable"
|
||||
| "unsupported";
|
||||
|
||||
export interface Track {
|
||||
readonly id: string;
|
||||
|
||||
Reference in New Issue
Block a user