Bind a VideoMedia handle to a caller-owned <video> element.
Vue idioms:
videoRef accepts a raw HTMLVideoElement, a Ref<...>, or a
getter. Pair with <video ref="video" /> in the template, then
pass the template ref straight in.media changes) the composable calls
media.revoke() to free the object URL.useVideoPlayer(
videoRef: MaybeRefOrGetter<HTMLVideoElement | null | undefined>,
media: MaybeRefOrGetter<VideoMedia | undefined>,
options: UseVideoPlayerOptions
): VideoPlayerHandle| Name | Type | Description |
|---|---|---|
videoRef* | MaybeRefOrGetter<HTMLVideoElement | null | undefined> | Reactive reference to the |
media* | MaybeRefOrGetter<VideoMedia | undefined> | Video handle from useVideo. |
options | UseVideoPlayerOptions | Auto-play toggle. |