mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 00:06:09 +00:00
Now with default bitrate suggestions per resolution and framerate
This commit is contained in:
parent
d3f7204cff
commit
c23b1a31be
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user