Skip to content

Commit

Permalink
Fix EME manager for multiple configs
Browse files Browse the repository at this point in the history
Fixes #177

Change-Id: I2976b2d1af237fb758892374c42f60ed488e41cb
  • Loading branch information
joeyparrish authored and Gerrit Code Review committed Sep 9, 2015
1 parent c45a3c2 commit 959595a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/media/eme_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ shaka.media.EmeManager.prototype.buildKeySystemPromiseChain_ =
function(mediaKeySystemConfigs, p) {
for (var keySystem in mediaKeySystemConfigs) {
var mksc = mediaKeySystemConfigs[keySystem];
p = p.catch(function() {
p = p.catch(function(keySystem, mksc) {
// If the prior promise was rejected, try the next key system in the list.
return navigator.requestMediaKeySystemAccess(keySystem, [mksc]);
});
}.bind(null, keySystem, mksc));
}
if (this.videoSource_.isOffline()) {
p = p.catch(function() {
Expand Down

0 comments on commit 959595a

Please sign in to comment.