Constructor
(export) new SeekBar(parentnon-null, controlsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
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:
(private) seekTimer_ :shaka.util.Timer
This timer is used to introduce a delay between the user scrubbing across
the seek bar and the seek being sent to the player.
Type:
- Source:
(private) wasPlaying_ :boolean
When user is scrubbing the seek bar - we should pause the video - see https://git.io/JUhHG
but will conditionally pause or play the video after scrubbing
depending on its previous state
Type:
- boolean
- Source:
Methods
(async) destroy()
- Overrides:
- shaka.ui.RangeElement#destroy
- 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:
update()
Called by Controls on a timer to update the state of the seek bar.
Also called internally when the user interacts with the input element.
- Source:
(private) updateAriaLabel_()
- Source: