Class: shaka.ui.VolumeBar

Constructor

(export) new VolumeBar(parentnon-null, controlsnon-null)

Parameters:
Name Type Description
parent HTMLElement
controls shaka.ui.Controls
Extends:
Source:

Extends

Classes

Factory

Members

(protected, non-null) bar :HTMLInputElement

Type:
  • HTMLInputElement
Overrides:
Source:

(protected, non-null) container :HTMLElement

This container is to support IE 11. See detailed notes in less/range_elements.less for a complete explanation.
Type:
  • HTMLElement
Overrides:
Source:

(private) isChanging_ :boolean

Type:
  • boolean
Overrides:
Source:

(export) parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(export) player :shaka.Player

Type:
Overrides:
Source:

Methods

getValue() → {number}

Overrides:
Source:
Returns:
Type
number

onChange()

Update the video element's state to match the input element's state. Called by the base class when the input element changes.
Overrides:
Source:

onChangeEnd()

Called when user interaction ends. To be overridden by subclasses.
Overrides:
Source:

onChangeStart()

Called when user interaction begins. To be overridden by subclasses.
Overrides:
Source:

(private) onVolumeStateChange_()

Source:

(private) setBarValueForTouch_(event)

Synchronize the touch position with the range value. Comes in handy on iOS, where users have to grab the handle in order to start seeking.
Parameters:
Name Type Description
event Event
Overrides:
Source:

setRange(min, max)

Parameters:
Name Type Description
min number
max number
Overrides:
Source:

setValue(value)

Parameters:
Name Type Description
value number
Overrides:
Source:

(private) updateAriaLabel_()

Source: