Now with default bitrate suggestions per resolution and framerate

This commit is contained in:
R. Aidan Campbell 2018-07-17 18:52:06 -07:00
parent d3f7204cff
commit c23b1a31be

View File

@ -120,6 +120,9 @@ ScrollView {
prefs.width = parseInt(resolutionListModel.get(currentIndex).video_width)
prefs.height = parseInt(resolutionListModel.get(currentIndex).video_height)
prefs.fps = parseInt(resolutionListModel.get(currentIndex).video_fps)
prefs.bitrateKbps = prefs.getDefaultBitrate(prefs.width, prefs.height, prefs.fps);
slider.value = prefs.bitrateKbps
}
}
@ -147,9 +150,11 @@ ScrollView {
// TODO value should be loaded as the current value.
value: prefs.bitrateKbps
stepSize: 500
from : 500
to: 100000
snapMode: "SnapOnRelease"
width: Math.min(bitrateDesc.implicitWidth, parent.width)