Class: shaka.polyfill.VTTCue

A polyfill to provide VTTCue.

Constructor

new VTTCue()

A polyfill to provide VTTCue.

Source:

Methods

canUse3ArgsTextTrackCue_() → {boolean}

Edge returns TextTrackCue.length = 0, although it accepts 3 constructor arguments.
Source:
Returns:
Type
boolean

from3ArgsTextTrackCue_(startTime, endTime, text) → {TextTrackCue}

Draft spec TextTrackCue with 3 constructor arguments.
Parameters:
Name Type Description
startTime number
endTime number
text string
Source:
See:
Returns:
Type
TextTrackCue

from6ArgsTextTrackCue_(startTime, endTime, text) → {TextTrackCue}

Draft spec TextTrackCue with 6 constructor arguments (5th & 6th are optional).
Parameters:
Name Type Description
startTime number
endTime number
text string
Source:
See:
Returns:
Type
TextTrackCue

install()

Install the polyfill if needed.
Source: