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| Name | Type | Description |
|---|---|---|
videoRef* | MaybeRefOrGetter<HTMLVideoElement | null | undefined> | |
media* | MaybeRefOrGetter<VideoMedia | undefined> | |
options | UseVideoPlayerOptions |
Reactive reference to the <video> element.
Video handle from useVideo.
Auto-play toggle.