mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Fix flags so bitrate scales up properly on GFE 2.2.2
This commit is contained in:
parent
79ddfc65d5
commit
52e5817327
@ -47,12 +47,7 @@ public class SdpGenerator {
|
|||||||
addSessionAttribute(config, "x-nv-video[0].timeoutLengthMs", "7000");
|
addSessionAttribute(config, "x-nv-video[0].timeoutLengthMs", "7000");
|
||||||
addSessionAttribute(config, "x-nv-video[0].framesWithInvalidRefThreshold", "0");
|
addSessionAttribute(config, "x-nv-video[0].framesWithInvalidRefThreshold", "0");
|
||||||
|
|
||||||
// Adding 100 causes the stream to start at a lower resolution
|
addSessionAttribute(config, "x-nv-vqos[0].bw.flags", "51");
|
||||||
/*if (sc.getAdaptiveResolutionEnabled()) {
|
|
||||||
addSessionAttribute(config, "x-nv-vqos[0].bw.flags", "3895");
|
|
||||||
}
|
|
||||||
else*/ {
|
|
||||||
addSessionAttribute(config, "x-nv-vqos[0].bw.flags", "3895");
|
|
||||||
|
|
||||||
// Lock the bitrate if we're not scaling resolution so the picture doesn't get too bad
|
// Lock the bitrate if we're not scaling resolution so the picture doesn't get too bad
|
||||||
if (sc.getHeight() >= 1080 && sc.getRefreshRate() >= 60) {
|
if (sc.getHeight() >= 1080 && sc.getRefreshRate() >= 60) {
|
||||||
@ -79,7 +74,6 @@ public class SdpGenerator {
|
|||||||
addSessionAttribute(config, "x-nv-vqos[0].bw.minimumBitrate", "3000");
|
addSessionAttribute(config, "x-nv-vqos[0].bw.minimumBitrate", "3000");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
|
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user