Version: 4.x
vime-pip-control
A control for toggling picture-in-picture (PiP) mode. This control is not displayed if PiP cannot
be requested (checked via the canSetPiP()
player method).
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Attribute | Description | Type | Default |
---|---|---|---|---|
enterIcon | enter-icon | The URL to an SVG element or fragment to display for entering PiP. | string | '#vime-enter-pip' |
exitIcon | exit-icon | The URL to an SVG element or fragment to display for exiting PiP. | string | '#vime-exit-pip' |
hideTooltip | hide-tooltip | Whether the tooltip should not be displayed. | boolean | false |
keys | 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 | 'p' |
tooltipDirection | tooltip-direction | The direction in which the tooltip should grow. | "left" ∣ "right" ∣ undefined | undefined |
tooltipPosition | tooltip-position | Whether the tooltip is positioned above/below the control. | "bottom" ∣ "top" | 'top' |
#
Dependencies#
Used by#
Depends on#
GraphBuilt with StencilJS