Skip to main content
Version: 4.x

vime-fullscreen-control

A control for toggling fullscreen mode. This control is not displayed if fullscreen cannot be requested (checked via the canSetFullscreen() player method).

Visual#

Vime fullscreen control component

Usage#

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

Properties#

PropertyAttributeDescriptionTypeDefault
enterIconenter-iconThe URL to an SVG element or fragment to display for entering fullscreen.string'#vime-enter-fullscreen'
exitIconexit-iconThe URL to an SVG element or fragment to display for exiting fullscreen.string'#vime-exit-fullscreen'
hideTooltiphide-tooltipWhether the tooltip should not be displayed.booleanfalse
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'f'
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-fullscreen-control --> vime-control
vime-fullscreen-control --> vime-icon
vime-fullscreen-control --> vime-tooltip
vime-default-controls --> vime-fullscreen-control
style vime-fullscreen-control fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS