Skip to content

Commit 3a92f42

Browse files
committed
Merge pull request #31 from sanbornhnewyyz/feature/getAdaptationState
Feature/get adaptation state
2 parents fd26657 + 34e3aba commit 3a92f42

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
# Please keep the list sorted.
1515

1616
Google Inc. <*@google.com>
17+
Sanborn Hilland <sanbornh@rogers.com>

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424

2525
Joey Parrish <joeyparrish@google.com>
2626
Natalie Harris <natalieharris@google.com>
27+
Sanborn Hilland <sanbornh@rogers.com>
2728
Timothy Drews <tdrews@google.com>
2829
Vasanth Polipelli <vasanthap@google.com>

lib/player/player.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,15 @@ shaka.player.Player.prototype.enableAdaptation = function(enabled) {
10081008
};
10091009

10101010

1011+
/**
1012+
* @return {boolean} Return true if automatic bitrate adaptation enabled.
1013+
* @export
1014+
*/
1015+
shaka.player.Player.prototype.getAdaptationEnabled = function() {
1016+
return this.adaptationEnabled_;
1017+
};
1018+
1019+
10111020
/**
10121021
* @return {number} Current playback time in seconds.
10131022
* @export

0 commit comments

Comments
 (0)