simple abr with delay

This commit is contained in:
csf
2022-06-27 21:23:14 +08:00
parent 0da5c2ec68
commit a7769da317
2 changed files with 56 additions and 120 deletions

View File

@@ -335,7 +335,8 @@ class Header: Reactor.Component {
}
function handle_custom_image_quality() {
var bitrate = handler.get_custom_image_quality()[0] / 2;
var tmp = handler.get_custom_image_quality();
var bitrate = (tmp[0] || 100) / 2;
msgbox("custom", "Custom Image Quality", "<div .form> \
<div><input type=\"hslider\" style=\"width: 50%\" name=\"bitrate\" max=\"100\" min=\"10\" value=\"" + bitrate + "\"/ buddy=\"bitrate-buddy\"><b #bitrate-buddy>x</b>% Bitrate</div> \
</div>", function(res=null) {