Make EME polyfills independent.

Now each EME polyfill can be removed independently; this allows
someone to remove just the IE11 polyfill while still keeping the
others.

This adds a priority ordering to the polyfills so the nop polyfill
will be run last as a fallback if there are no other polyfills.

Issue #1261

Change-Id: I865e1c0d6a73a079dd91505e96572e215e6f6c6a
This commit is contained in:
Jacob Trimble
2018-03-06 11:44:32 -08:00
parent 2bdb032e4c
commit bfb42c69c4
8 changed files with 91 additions and 92 deletions
+4 -1
View File
@@ -69,7 +69,10 @@ __Polyfills__
- prefixed video QoE metrics:
{@linksource shaka.polyfill.VideoPlaybackQuality}
- prefixed EME implementations for IE 11 and very old versions of embedded
Chrome/Chromium: {@linksource shaka.polyfill.MediaKeys}
Chrome/Chromium:
- {@linksource shaka.polyfill.PatchedMediaKeysMs}
- {@linksource shaka.polyfill.PatchedMediaKeysWebkit}
- {@linksource shaka.polyfill.PatchedMediaKeysNop}
- variants of VTTCue and TextTrackCue constructors:
{@linksource shaka.polyfill.VTTCue}