Skip to content

Commit

Permalink
fix: immediately setup EME if available (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo committed Oct 24, 2018
1 parent 0e4fdf9 commit 7577e90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/videojs-http-streaming.js
Expand Up @@ -180,6 +180,11 @@ 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) {
player.eme.initializeMediaKeys();
}
}
}
};
Expand Down

0 comments on commit 7577e90

Please sign in to comment.