Skip to content

Function: useLiveVideoPlayerState() ​

useLiveVideoPlayerState<Selected>(selector, target?): ComputedRef<Selected | undefined>

Defined in: live/composables.ts:18

Subscribe to a live snapshot selection; unavailable players yield undefined.

Type Parameters ​

Selected ​

Selected

Parameters ​

selector ​

(state) => Selected

Selects from the immutable upstream live snapshot.

target? ​

LiveVideoPlayerTarget

Explicit player target, or injected live context when omitted.

Returns ​

ComputedRef<Selected | undefined>

A readonly selection, undefined while unavailable.