Skip to main content

Interface: CastEventMap

Defined in: packages/cast/src/types.ts:41

Payload delivered for each event name. queueChanged carries nothing — void keeps () => void assignable as a listener.

Properties

castState

castState: CastStateEvent;

Defined in: packages/cast/src/types.ts:43

The 5-state connection machine moved.


devices

devices: readonly CastDeviceInfo[];

Defined in: packages/cast/src/types.ts:47

Discovery produced a new device list.


deviceVolume

deviceVolume: NativeDeviceVolumeEvent;

Defined in: packages/cast/src/types.ts:59

Physical device volume moved (the primary volume layer).


error

error: CastError;

Defined in: packages/cast/src/types.ts:55

A receiver-side failure (CastError with code cast-receiver-fetch), from idleReason: 'error' or the SDK's media error callback.


mediaStatus

mediaStatus: NativeCastMediaStatusEvent;

Defined in: packages/cast/src/types.ts:49

Receiver status discontinuity — project position locally from here.


queueChanged

queueChanged: void;

Defined in: packages/cast/src/types.ts:57

The sender-side queue mirror changed; re-read any slices you hold.


session

session: NativeCastSessionEvent;

Defined in: packages/cast/src/types.ts:45

Raw session lifecycle (finer-grained than castState).