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- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
activeDuration | The length in milliseconds that the controls are active for before fading out. Audio players are not effected by this prop. | number | 2750 |
hideOnMouseLeave | Whether the controls should hide when the mouse leaves the player. Audio players are not effected by this prop. | boolean | false |
hideWhenPaused | Whether the controls should show/hide when paused. Audio players are not effected by this prop. | boolean | false |
waitForPlaybackStart | Whether the controls should wait for playback to start before being shown. Audio players are not effected by this prop. | boolean | false |