Version: 5.x

vm-click-to-play

Enables toggling playback by clicking the player.

Usage#

<vm-player>
<!-- ... -->
<vm-ui>
<!-- ... -->
<vm-click-to-play></vm-click-to-play>
</vm-ui>
</vm-player>

Properties#

PropertyDescriptionTypeDefault
useOnMobileBy default this is disabled on mobile to not interfere with playback, set this to true to enable it.booleanfalse

CSS Custom Properties#

NameDescription
--vm-click-to-play-z-indexThe position in the UI z-axis stack inside the player.

Dependencies#

Used by#