Skip to content

Commit

Permalink
fix: don't try to initialize media keys in ie11, #682 master
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jan 9, 2020
1 parent ae5e3fd commit dac1e55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/videojs-http-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ const setupEmeOptions = (hlsHandler) => {
player.currentSource().keySystems = sourceOptions;

// works around https://bugs.chromium.org/p/chromium/issues/detail?id=895449
if (player.eme.initializeMediaKeys) {
// in non-IE11 browsers. In IE11 this is too early to initialize media keys
if (!(videojs.browser.IE_VERSION === 11) && player.eme.initializeMediaKeys) {
player.eme.initializeMediaKeys();
}
}
Expand Down

0 comments on commit dac1e55

Please sign in to comment.