forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a (rough) polyfill for EME spec version 20140218 (http://www.w3.org/TR/2014/WD-encrypted-media-2014021) which IE11/Edge implement. Works with real PlayReady protected assets with a few caveats: 1. Using CustomEvent is troublesome, IE doesn't seem to completely remove it from window, as some properties like "target" are remain un-modifiable. Introduced a mirrored property, but it's a hack 2. IE doesn't like certain actions from occuring when the video element is not initialised (e.g. readyState still 0), so there is one place where currentTime is being set before this, so we moved it into a loadedmetadata handler (not 100% if this causes issues) 3. Similar to above, calling setMediaKeys when readyState is 0 causes an InvalidStateError - have moved it into a loadstart event handler, but I think there may be a race condition, as playback occasionaly fails 4. Not tested this with ClearKey 5. Not tested this with pre-supplied init data (i.e. we're reacting to the native msKeyNeeded event rather than fake encrypted event)
- Loading branch information
1 parent
96b369e
commit 79a80f0
Showing
5 changed files
with
456 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.