Interface: CastReceiverSnapshot
Defined in: packages/cast/src/handoff-machine.ts:157
The receiver's state, reconciled to JS-queue vocabulary — what the app maps
into its setPlaybackState/setMediaItem broadcasts while cast-active.
{position, at, rate} is a position anchor in the library-wide sense:
broadcast on discontinuities, projected locally in between.
Properties
at
readonly at: number;
Defined in: packages/cast/src/handoff-machine.ts:167
Epoch ms the anchor was taken.
duration?
readonly optional duration?: number;
Defined in: packages/cast/src/handoff-machine.ts:171
Stream duration in seconds, when the receiver knows it.
idleReason
readonly idleReason: CastIdleReason;
Defined in: packages/cast/src/handoff-machine.ts:159
itemIndex?
readonly optional itemIndex?: number;
Defined in: packages/cast/src/handoff-machine.ts:163
Reconciled JS-queue index, when the current receiver item maps to one.
playerState
readonly playerState: CastPlayerState;
Defined in: packages/cast/src/handoff-machine.ts:158
playing
readonly playing: boolean;
Defined in: packages/cast/src/handoff-machine.ts:161
true while the receiver intends to advance (playing/buffering/loading).
position
readonly position: number;
Defined in: packages/cast/src/handoff-machine.ts:165
Receiver position in seconds at at.
queueEnded
readonly queueEnded: boolean;
Defined in: packages/cast/src/handoff-machine.ts:173
The receiver finished the last queue item (idle + finished).
rate
readonly rate: number;
Defined in: packages/cast/src/handoff-machine.ts:169
Rate the position advances at from at; 0 freezes projection.