Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/eme-1.js Secret

Last active Oct 14, 2015
Embed
What would you like to do?
if (window.navigator.requestMediaKeySystemAccess) {
// unprefixed EME (Edge/Chrome)
videoElement.addEventListener('encrypted', this.getNewKeySession, false);
}
else {
// prefixed EME (IE11)
videoElement.addEventListener('msneedkey', this.getNewPrefixedKeySession, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment