Class: shaka.polyfill

A one-stop installer for all polyfills.

Source:
See:

Classes

shaka.polyfill.Fullscreen
A polyfill to unify fullscreen APIs across browsers. Many browsers have prefixed fullscreen methods on Element and document. See Using fullscreen mode on MDN for more information.
shaka.polyfill.IndexedDB
A polyfill to patch indexed db bugs.
shaka.polyfill.InputEvent
A polyfill to patch 'input' event support in IE11.
shaka.polyfill.MathRound
A polyfill to patch math round bug on some browsers.
shaka.polyfill.MediaKeys
A polyfill to unify EME APIs across browser versions. The EME spec is still a work-in-progress. As such, we need to provide a consistent API to the Shaka Player. Until the spec is completely stable, the API provided by this polyfill may lag behind the latest spec developments.
shaka.polyfill.MediaSource
A polyfill to patch MSE bugs.
shaka.polyfill.Promise
A polyfill to implement Promises, primarily for IE. Only partially supports thenables, but otherwise passes the A+ conformance tests. Note that Promise.all() and Promise.race() are not tested by that suite.
shaka.polyfill.VideoPlaybackQuality
A polyfill to provide MSE VideoPlaybackQuality metrics. Many browsers do not yet provide this API, and Chrome currently provides similar data through individual prefixed attributes on HTMLVideoElement.
shaka.polyfill.VideoPlayPromise
A polyfill to silence the play() Promise in HTML5 video.
shaka.polyfill.VTTCue
A polyfill to provide VTTCue.

Members

(private, static, non-null) polyfills_ :Array.<function()>

Contains the polyfills that will be installed.
Type:
  • Array.<function()>
Source:

Methods

(static) installAll()

Install all polyfills.
Source:

(static) register(polyfill)

Registers a new polyfill to be installed.
Parameters:
Name Type Description
polyfill function()
Source: