Skip to content

Commit

Permalink
Fix config bitrate when using configRatio. Value needs to be specifie…
Browse files Browse the repository at this point in the history
…d in kbps
  • Loading branch information
dsilhavy committed May 29, 2021
1 parent b957652 commit 552c318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/AbrController.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ function AbrController() {
const representation = adapter.getAdaptationForType(streamInfo.index, type, streamInfo).Representation;
if (Array.isArray(representation)) {
const repIdx = Math.max(Math.round(representation.length * configRatio) - 1, 0);
configBitrate = representation[repIdx].bandwidth;
configBitrate = representation[repIdx].bandwidth / 1000;
} else {
configBitrate = 0;
}
Expand Down

0 comments on commit 552c318

Please sign in to comment.