Skip to content

Events ​

Player events ​

VideoPlayer and PlayerRoot emit these events:

EventPayloadWhen emitted
readyPlayerHandleThe mounted or reactivated root has acquired its store.
update:volumenumberMedia confirmation reports a changed volume.
update:mutedbooleanMedia confirmation reports a changed mute setting.
update:playbackRatenumberMedia confirmation reports a changed playback rate.

Setting confirmation runs after volumechange or ratechange, batches updates until Vue's next tick, and suppresses unchanged values. These events report the actual media settings; they are not a guaranteed initial snapshot on ready.

Use v-model:volume, v-model:muted, and v-model:playback-rate on VideoPlayer. In composition mode, bind settings to the media component and listen for confirmations on PlayerRoot.

Media events ​

Video, HlsVideo, PlayerRoot, and VideoPlayer forward the original Event object for every event listed below. Handlers can use the event's media target or a player handle to inspect the media element.

CategoryEvents
Loadingloadstart, progress, suspend, abort, emptied, stalled, error
Readinessloadedmetadata, loadeddata, canplay, canplaythrough
Playbackplay, playing, pause, waiting, ended
Timelinedurationchange, timeupdate, seeking, seeked
Settingsvolumechange, ratechange
Picture-in-pictureenterpictureinpicture, leavepictureinpicture

There is no whole-state change event. Use usePlayerState for reactive state rather than duplicating playback state in event handlers.

Readiness milestones ​

SignalMeaning
readyThe player store is available for actions and selectors.
loadedmetadataMedia metadata has loaded.
canplayThe media element reports that playback can start.
playingPlayback has started or resumed after waiting.

ready alone does not mean duration is known or video data is buffered. The browser controls media event timing.

Handle errors ​

The error event reports a media failure. Read player.media?.error for details. Command failures, such as a rejected play(), must be caught separately; they do not become synthetic media events.

See state and actions for error handling and troubleshooting for common causes.