Skip to content

Video

Video player with Bridge command control.

Code examples

Video player

Poster, native controls, and event callbacks

API

Props

属性说明类型默认值
srcVideo URLstring-
posterPoster image URLstring-
autoplayAutoplaybooleanfalse
loopLoop playbackbooleanfalse
mutedMutedbooleanfalse
controlsShow default controlsbooleantrue
initial-timeInitial position (seconds)number0

Events

属性说明类型默认值
playPlayback started--
pausePaused--
endedPlayback ended--
timeupdateProgress update{ currentTime, duration }-
errorPlayback error{ src }-

MiniDev Studio — Mini-app Development Toolkit