Skip to content

MediaPlayer ​

A video or audio player with the controls of the browser or accessible controls of its own.

ts
import { MediaPlayer } from '@zairakai/vue-components/Medias'

Usage ​

vue
<MediaPlayer />

Props ​

NameTypeDefaultDescription
idstring
classstring
srcstring
typestring'video'"video" or "audio".
posterstring
tracksarray[]Subtitles: { src, srclang, label, default }.
customControlsbooleanfalseOur own controls instead of the ones of the browser.
loopbooleanfalse
mutedbooleanfalse
playingbooleanundefinedWhether it plays. Start playing by setting it, a browser can refuse without a click.
labelstring
playLabelstring'Play'
pauseLabelstring'Pause'
muteLabelstring'Mute'
unmuteLabelstring'Unmute'
seekLabelstring'Seek'
volumeLabelstring'Volume'
speedLabelstring'Speed'
fullscreenLabelstring'Fullscreen'
speedsarray[0.5, 1, 1.5, 2]

Events ​

NameDescription
update:playing
update:time
ended
error

Slots ​

NameDescription
default

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.