Class: shaka.polyfill.VTTCue

A polyfill to provide VTTCue.

Constructor

new VTTCue()

A polyfill to provide VTTCue.

Source:

Methods

canUse3ArgsTextTrackCue_() → {boolean}

IE10, IE11 and Edge return TextTrackCue.length = 0, although they accept 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: