Interface: CanCastInput
Defined in: packages/cast/src/can-cast.ts:12
Castability heuristic against the Google Cast receiver codec table.
Source of truth: https://developers.google.com/cast/docs/media (verified
2026-08-13). Cast audio receivers (Chromecast built-in speakers included)
decode: HE-AAC, LC-AAC, MP3, FLAC (≤ 96 kHz / 24-bit), Opus, Vorbis,
WAV (LPCM) and WebM audio. mpv plays far more than that — this function
exists so apps can grey the cast route out per track instead of failing at
load time with a cast-receiver-fetch error.
Properties
headers?
optional headers?: Record<string, string>;
Defined in: packages/cast/src/can-cast.ts:18
Per-request auth headers the source needs, if any.
mimeType?
optional mimeType?: string;
Defined in: packages/cast/src/can-cast.ts:16
Concrete MIME type when known — beats the extension heuristic.
url
url: string;
Defined in: packages/cast/src/can-cast.ts:14
The URL (or local path) the receiver would be asked to fetch.