Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't try to initialize media keys in IE11 #682

Merged
merged 1 commit into from
Nov 12, 2019

Conversation

alex-barstow
Copy link
Contributor

@alex-barstow alex-barstow commented Nov 12, 2019

Description

PlayReady media key setup (done via msSetMediaKeys() in IE11) is a side effect of the on-demand player.eme.initializeMediaKeys() call and fails because the video readyState is still 0 at that point. For msSetMediaKeys() to work the readyState apparently has to be > 0. Therefore, we need to bypass initializeMediaKeys() in IE11 and delay the msSetMediaKeys() call until the video element is ready.

Specific Changes proposed

Add a !(videojs.browser.IE_VERSION === 11) condition before calling initializeMediaKeys(), so that we fall back to the old contrib-eme key setup behavior that waits until the msneedkey event in IE 11, and continue to use the on-demand key setup behavior everywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants