Skip to main content

ControlBarOptions

Since version 4.0.0

Options for ControlBar

interface ControlBarOptions

Properties

Automatically hide control bar on video plays.
true to enable with default values, false to disable.

Override default class names.

Whether to play / pause video on canvas click

Custom control bar items

Show fullscreen button.
true to enable with default values, false to disable.

Show gyroscope control enable / disable button.
true to enable with default values, false to disable.

Enable keyboard controls for video.
Pressing up / down arrow will control video volume, and pressing left / right arrow will control video time.

Show camera pie view.
true to enable with default values, false to disable.

Show video play / pause button.
true to enable with default values, false to disable.

Show video progress bar.
true to enable with default values, false to disable.

Show background element.

Show video current / total time
true to enable with default values, false to disable.

Show video volume control button.
true to enable with default values, false to disable.

Show VR button.
true to enable with default values, false to disable.

Properties

autoHide

>=4.0.0
autoHide

boolean | Partial<AutoHideOptions>

Automatically hide control bar on video plays.
true to enable with default values, false to disable.

className

>=4.0.0
className

Partial<{ CONTROLS_BG: string; CONTROLS_BOTTOM: string; CONTROLS_BUTTON: string; CONTROLS_FLOAT_LEFT: string; CONTROLS_FLOAT_RIGHT: string; CONTROLS_LEFT: string; CONTROLS_MAIN: string; CONTROLS_MID: string; CONTROLS_RIGHT: string; CONTROLS_ROOT: string; CONTROLS_TOP: string; FIXED: string; FULLSCREEN_BUTTON: string; FULLSCREEN_EXIT_BUTTON: string; GYRO_DISABLED: string; GYRO_ENABLED: string; HIDDEN: string; MUTED_BUTTON: string; PAUSE_BUTTON: string; PIEVIEW_ROOT: string; PLAY_BUTTON: string; PROGRESS_ROOT: string; RANGE_FILLER: string; RANGE_ROOT: string; RANGE_THUMB: string; RANGE_TRACK: string; UNAVAILABLE: string; UNMUTED_BUTTON: string; VIDEO_TIME_DISPLAY: string; VOLUME_ROOT: string; VR_BUTTON: string }>

Override default class names.

clickToPlay

>=4.0.0
clickToPlay

boolean

Whether to play / pause video on canvas click

customItems

>=4.0.0
customItems

ControlBarItem[]

Custom control bar items

fullscreenButton

>=4.0.0
fullscreenButton

boolean | Partial<ControlBarItemOptions>

Show fullscreen button.
true to enable with default values, false to disable.

gyroButton

>=4.0.0
gyroButton

boolean | Partial<ControlBarItemOptions>

Show gyroscope control enable / disable button.
true to enable with default values, false to disable.

keyboardControls

>=4.0.0
keyboardControls

boolean

Enable keyboard controls for video.
Pressing up / down arrow will control video volume, and pressing left / right arrow will control video time.

pieView

>=4.0.0
pieView

boolean | Partial<PieViewOptions>

Show camera pie view.
true to enable with default values, false to disable.

playButton

>=4.0.0
playButton

boolean | Partial<ControlBarItemOptions>

Show video play / pause button.
true to enable with default values, false to disable.

progressBar

>=4.0.0
progressBar

boolean | Partial<ControlBarItemOptions>

Show video progress bar.
true to enable with default values, false to disable.

showBackground

>=4.0.0
showBackground

boolean

Show background element.

videoTime

>=4.0.0
videoTime

boolean | Partial<ControlBarItemOptions>

Show video current / total time
true to enable with default values, false to disable.

volumeButton

>=4.0.0
volumeButton

boolean | Partial<ControlBarItemOptions>

Show video volume control button.
true to enable with default values, false to disable.

vrButton

>=4.0.0
vrButton

boolean | Partial<ControlBarItemOptions>

Show VR button.
true to enable with default values, false to disable.