Skip to content

Commit

Permalink
Merge pull request #31 from sanbornhnewyyz/feature/getAdaptationState
Browse files Browse the repository at this point in the history
Feature/get adaptation state
  • Loading branch information
joeyparrish committed Mar 11, 2015
2 parents fd26657 + 34e3aba commit 3a92f42
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
# Please keep the list sorted.

Google Inc. <*@google.com>
Sanborn Hilland <sanbornh@rogers.com>
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@

Joey Parrish <joeyparrish@google.com>
Natalie Harris <natalieharris@google.com>
Sanborn Hilland <sanbornh@rogers.com>
Timothy Drews <tdrews@google.com>
Vasanth Polipelli <vasanthap@google.com>
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 3a92f42

Please sign in to comment.