Class: shaka.polyfill.VTTCue

A polyfill to provide VTTCue.

Source:

Methods

(private, static) canUse3ArgsTextTrackCue_() → {boolean}

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

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

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

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

Draft spec TextTrackCue with 6 constructor arguments (5th & 6th are optional). See W3C Working Draft 29 March 2012. Quoting the access to the TextTrackCue object to avoid the compiler complaining.
Parameters:
Name Type Description
startTime number
endTime number
text string
Source:
Returns:
Type
TextTrackCue

(static) install()

Install the polyfill if needed.
Source: