Version: 5.x
vm-volume-control
A control for adjusting the volume of the player and toggling the muted state.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
hideTooltip | Whether the tooltip should be hidden. | boolean | false |
highVolumeIcon | The name of the high volume icon to resolve from the icon library. | string | 'volume-high' |
icons | The name of an icon library to use. Defaults to the library defined by the icons player property. | string ∣ undefined | undefined |
lowVolumeIcon | The name of the low volume icon to resolve from the icon library. | string | 'volume-low' |
muteKeys | A pipe (/ ) separated string of JS keyboard keys, that when caught in a keydown event, will toggle the muted state of the player. | string ∣ undefined | 'm' |
mutedIcon | The name of the muted volume icon to resolve from the icon library. | string | 'volume-mute' |
noKeyboard | Prevents the volume being changed using the Up/Down arrow keys. | boolean | false |
tooltipDirection | The direction in which the tooltip should grow. | "left" ∣ "right" ∣ undefined | undefined |
tooltipPosition | Whether the tooltip is positioned above/below the control. | "bottom" ∣ "top" | 'top' |