Version: 5.x
vm-caption-control
A control for toggling the visibility of captions. This control is not displayed if there's no track currently set.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
hideIcon | The URL to an SVG element or fragment to load. | string | 'captions-off' |
hideTooltip | Whether the tooltip should not be displayed. | boolean | false |
icons | The name of an icon library to use. Defaults to the library defined by the icons player property. | string ∣ undefined | undefined |
keys | A 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 | 'c' |
showIcon | The URL to an SVG element or fragment to load. | string | 'captions-on' |
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' |