From cbe40fde92e18b6baa076b2cdc1d5efa196b1cfe Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 31 Jul 2014 14:06:30 -0700 Subject: [PATCH] Prevent network degradation from changing stream resolution --- .../src/com/limelight/nvstream/rtsp/SdpGenerator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java index 852ef231..23189ca8 100644 --- a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java +++ b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java @@ -108,6 +108,10 @@ public class SdpGenerator { addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate()); + // Prevent resolution changes due to network degradation + addSessionAttribute(config, "x-nv-vqos[0].bw.earlyDetectionLowerBoundWidth", ""+sc.getWidth()); + addSessionAttribute(config, "x-nv-vqos[0].bw.earlyDetectionLowerBoundHeight", ""+sc.getHeight()); + addSessionAttribute(config, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000"); addSessionAttribute(config, "x-nv-vqos[0].qosTrafficType", "7"); addSessionAttribute(config, "x-nv-aqos.qosTrafficType", "8");