Class: shaka.ui.SeekBar

Constructor

new SeekBar(parentnon-null, controlsnon-null)

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

Extends

Members

adBreaksTimer_ :shaka.util.Timer

The timer is activated for live content and checks if new ad breaks need to be marked in the current seek range.
Type:
Source:

adCuePoints_ :Array.<!shaka.ads.CuePoint>

Type:
Source:

adMarkerContainer_ :HTMLElement

Type:
  • HTMLElement
Source:

bar :HTMLInputElement

Type:
  • HTMLInputElement
Overrides:
Source:

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:

isChanging_ :boolean

Type:
  • boolean
Overrides:
Source:

parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

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:

Methods

getValue() → {number}

Overrides:
Source:
Returns:
Type
number

isShowing() → {boolean}

Source:
Returns:
Type
boolean

makeColor_(color, fract) → {string}

Parameters:
Name Type Description
color string
fract number
Source:
Returns:
Type
string

markAdBreaks_()

Source:

onAdCuePointsChanged_()

Source:

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 by the base class when user interaction with the input element ends.
Overrides:
Source:

onChangeStart()

Called by the base class when user interaction with the input element begins.
Overrides:
Source:

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:

shouldBeDisplayed_() → {boolean}

Source:
Returns:
Type
boolean

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:

updateAriaLabel_()

Source: