Skip to content

Commit

Permalink
Add getter for state of automatic adaptation
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
Sanborn Hilland committed Mar 11, 2015
1 parent b1c0c19 commit 34e3aba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/player/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,15 @@ shaka.player.Player.prototype.enableAdaptation = function(enabled) {
};


/**
* @return {boolean} Return true if automatic bitrate adaptation enabled.
* @export
*/
shaka.player.Player.prototype.getAdaptationEnabled = function() {
return this.adaptationEnabled_;
};


/**
* @return {number} Current playback time in seconds.
* @export
Expand Down

0 comments on commit 34e3aba

Please sign in to comment.