Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Declare restrictions object on player
  • Loading branch information
Sanborn Hilland committed Mar 12, 2015
commit ce9ee3a06cfa93b54b1f8c2ba645c956030c7b27
7 changes: 6 additions & 1 deletion lib/player/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ shaka.player.Player = function(video) {

/** @private {boolean} */
this.adaptationEnabled_ = true;

/** @private {!shaka.player.DrmSchemeInfo.Restrictions} */
this.restrictions_ = new shaka.player.DrmSchemeInfo.Restrictions();
};
goog.inherits(shaka.player.Player, shaka.util.FakeEventTarget);

Expand Down Expand Up @@ -276,8 +279,10 @@ shaka.player.Player.prototype.load = function(videoSource) {
).then(shaka.util.TypedBind(this,
function() {
this.videoSource_ = videoSource;
this.videoSource_.setRestrictions(this.restrictions_);
this.emeManager_ =
new shaka.media.EmeManager(this, this.video_, this.videoSource_);
new shaka.media.EmeManager(
this, this.video_, this.videoSource_, this.restrictions_);
return this.emeManager_.initialize();
})
).then(shaka.util.TypedBind(this,
Expand Down