Skip to content

Commit

Permalink
fix: only do ondemand eme key initialization on non-ie11 browsers (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-barstow authored and gkatsev committed Nov 12, 2019
1 parent 6195392 commit fbfe68f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/videojs-http-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ const setupEmeOptions = (hlsHandler) => {
if (sourceOptions) {
player.currentSource().keySystems = sourceOptions;

// works around https://bugs.chromium.org/p/chromium/issues/detail?id=895449
if (player.eme.initializeMediaKeys) {
// Works around https://bugs.chromium.org/p/chromium/issues/detail?id=895449
// 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 fbfe68f

Please sign in to comment.