Function: errorFromIdleReason()
function errorFromIdleReason(idleReason: CastIdleReason): CastError | null;
Defined in: packages/cast/src/errors.ts:189
Classify a receiver idle reason into what it means for playback.
finished→ natural end of media — not an error.cancelled→ a sender asked for it (stop/new load) — not an error.interrupted→ another load interrupted playback — not an error.error→ the receiver failed to fetch/decode; CastError with codecast-receiver-fetch.
Parameters
| Parameter | Type |
|---|---|
idleReason | CastIdleReason |
Returns
CastError | null