-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix: encrypted content goes black in IE/Edge when video element focused #6318
Conversation
package.json
Outdated
@@ -153,6 +153,7 @@ | |||
}, | |||
"vjsstandard": { | |||
"ignore": [ | |||
"build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of errors were you seeing? I don't have any issues running the linter locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My local build/
directory was somehow outdated. This is not needed so I removed it.
src/js/big-play-button.js
Outdated
@@ -46,8 +47,16 @@ class BigPlayButton extends Button { | |||
|
|||
// exit early if clicked via the mouse | |||
if (this.mouseused_ && event.clientX && event.clientY) { | |||
const sourceIsEncrypted = this.player_.usingPlugin('eme') && | |||
this.player_.eme.sessions && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably either line up or be indented once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it was lined up in my editor but the indentation didn't carry over correctly for some reason. I'll figure it out.
Looks like any programmatic call to focus causes the video element to turn black. |
Description
Fixes #6270. This appears to be caused by an unreported browser bug. It also reproduces with shaka player if you call
document.querySelector('video').focus()
while playing back DRM content. For now, the only solution is simply to avoid callingvideoEl.focus()
in IE/Edge for DRM. This unfortunately may prevent hotkeys from working correctly in IE/Edge.Specific Changes proposed
Modify the conditions under which we call
this.player_.tech(true).focus()
when the big play button is clicked.