Skip to main content

VolumeControl

Since version 4.0.0

Show video volume control.

class VolumeControl extends ControlBarItem

Extends

Properties

Order within the same position.
The lowest one will be shown first.

Position to display item.

Element of the item.

Methods

Destroy item and release all resources & event handlers.

Initialize item.

Constructor

Create a new instance.
new VolumeControl(options: Partial<ControlBarItemOptions>): VolumeControl

Parameters

options

{}

Options

Properties

order

>=4.0.0
inherited
order

number

Order within the same position.
The lowest one will be shown first.

position

>=4.0.0
inherited
position

"top-left" | "top-right" | "main-top" | "main-bottom" | "main-left" | "main-right"

Position to display item.

element

>=4.0.0
readonly
element

HTMLButtonElement

Element of the item.

Methods

destroy

>=4.0.0
destroy

void

destroy(viewer: View360): void

Destroy item and release all resources & event handlers.

Parameters

viewer

A instance of viewer to detach item

init

>=4.0.0
init

void

init(viewer: View360, controlBar: ControlBar): void

Initialize item.

Parameters

viewer

A instance of viewer to attach item

controlBar

A instance of control bar to attach item