Skip to main content
Version: 4.x

vime-mute-control

A control for toggling whether there is audio output or not. In other words the muted state of the player.

Visual#

Vime mute control component

Usage#

<vime-player>
<!-- ... -->
<vime-ui>
<!-- ... -->
<vime-controls>
<!-- ... -->
<vime-mute-control></vime-mute-control>
</vime-controls>
</vime-ui>
</vime-player>

Properties#

PropertyAttributeDescriptionTypeDefault
hideTooltiphide-tooltipWhether the tooltip should not be displayed.booleanfalse
highVolumeIconhigh-volume-iconThe URL to an SVG element or fragment.string'#vime-volume-high'
keyskeysA slash (/) separated string of JS keyboard keys (KeyboardEvent.key), that when caught in a keydown event, will trigger a click event on the control.string ∣ undefined'm'
lowVolumeIconlow-volume-iconThe URL to an SVG element or fragment.string'#vime-volume-low'
mutedIconmuted-iconThe URL to an SVG element or fragment.string'#vime-volume-mute'
tooltipDirectiontooltip-directionThe direction in which the tooltip should grow."left" ∣ "right" ∣ undefinedundefined
tooltipPositiontooltip-positionWhether the tooltip is positioned above/below the control."bottom" ∣ "top"'top'

Dependencies#

Used by#

Depends on#

Graph#

graph TD;
vime-mute-control --> vime-control
vime-mute-control --> vime-icon
vime-mute-control --> vime-tooltip
vime-volume-control --> vime-mute-control
style vime-mute-control fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS