Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit acc3a30

Browse files
committed
MediaPlayer: getVideoBitrates() returns a copy of the bitrates array (and correct jsdoc)
1 parent ef2fdb7 commit acc3a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/js/streaming/MediaPlayer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,15 +1121,15 @@ MediaPlayer = function () {
11211121
},
11221122

11231123
/**
1124-
* Returns the list of available bitrates (as specified in the stream manifest).
1124+
* Returns the list of available bitrates (in bitrate ascending order).
11251125
* @method getVideoBitrates
11261126
* @access public
11271127
* @memberof MediaPlayer#
11281128
* @return {Array<Number>} array of bitrate values
11291129
*/
11301130
getVideoBitrates: function () {
11311131
_isPlayerInitialized();
1132-
return videoBitrates;
1132+
return videoBitrates.slice();
11331133
},
11341134

11351135
/**

0 commit comments

Comments
 (0)