Skip to content

Commit 34e3aba

Browse files
author
Sanborn Hilland
committed
Add getter for state of automatic adaptation
Closes #29
1 parent b1c0c19 commit 34e3aba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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)