mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-05 14:07:39 +03:00
Show kbps in quality
Co-authored-by: Matthew Esposito <matt@matthew.science>
This commit is contained in:
parent
0888fce5a2
commit
db6238394a
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@
|
||||||
availableLevels.forEach(function (level, index) {
|
availableLevels.forEach(function (level, index) {
|
||||||
var option = document.createElement('option');
|
var option = document.createElement('option');
|
||||||
option.value = index.toString();
|
option.value = index.toString();
|
||||||
option.text = level.height + 'p';
|
var bitrate = (level.bitrate / 1_000).toFixed(0);
|
||||||
|
option.text = level.height + 'p (' + bitrate + ' kbps)';
|
||||||
qualitySelector.appendChild(option);
|
qualitySelector.appendChild(option);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue