Skip to main content
Version: 5.x

vm-default-controls

Default set of controls for when you're in a hurry. The controls displayed depend on whether the media is audio/video/live, and whether the device is mobile/desktop. See vime-default-ui for visuals.

Usage#

<vm-player>
<!-- ... -->
<vm-ui>
<!-- ... -->
<vm-default-controls active-duration="2750"></vm-default-controls>
</vm-ui>
</vm-player>

Properties#

PropertyDescriptionTypeDefault
activeDurationThe length in milliseconds that the controls are active for before fading out. Audio players are not effected by this prop.number2750
hideOnMouseLeaveWhether the controls should hide when the mouse leaves the player. Audio players are not effected by this prop.booleanfalse
hideWhenPausedWhether the controls should show/hide when paused. Audio players are not effected by this prop.booleanfalse
waitForPlaybackStartWhether the controls should wait for playback to start before being shown. Audio players are not effected by this prop.booleanfalse

Dependencies#

Used by#

Depends on#