Skip to main content

Interface: NativeCastMediaStatusEvent

Defined in: packages/cast/src/specs/cast.nitro.ts:234

Receiver media-status discontinuity.

Emitted only when the receiver reports a status change — position is never streamed (library rule). position is the receiver's approximate stream position when the status arrived; clients project locally from there.

Properties

currentItemId?

optional currentItemId?: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:248

Receiver queue item id currently playing; absent when none.


duration?

optional duration?: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:241

Stream duration in seconds; absent when unknown or live.


idleReason

idleReason: CastIdleReason;

Defined in: packages/cast/src/specs/cast.nitro.ts:237

Meaningful only while playerState is idle.


playbackRate

playbackRate: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:242


playerState

playerState: CastPlayerState;

Defined in: packages/cast/src/specs/cast.nitro.ts:235


position

position: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:239

Approximate receiver position in seconds at event time.


queueItemCount

queueItemCount: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:249


repeatMode

repeatMode: CastRepeatMode;

Defined in: packages/cast/src/specs/cast.nitro.ts:246


streamMuted

streamMuted: boolean;

Defined in: packages/cast/src/specs/cast.nitro.ts:245


streamVolume

streamVolume: number;

Defined in: packages/cast/src/specs/cast.nitro.ts:244

Receiver stream volume 0..1 (the app-level layer, not the speaker volume).