Add a better description to the new remote streaming field and rename to it be more clear about what it means
This commit is contained in:
parent
cc8eae2c41
commit
a97e7c962a
2 changed files with 9 additions and 8 deletions
|
|
@ -25,8 +25,9 @@ typedef struct _STREAM_CONFIGURATION {
|
||||||
// Max video packet size in bytes (use 1024 if unsure)
|
// Max video packet size in bytes (use 1024 if unsure)
|
||||||
int packetSize;
|
int packetSize;
|
||||||
|
|
||||||
// Enable remote optimizations
|
// Set to non-zero value to enable remote (over the Internet)
|
||||||
int remote;
|
// streaming optimizations. If unsure, set to 0.
|
||||||
|
int streamingRemotely;
|
||||||
|
|
||||||
// AES encryption data for the remote input stream. This must be
|
// AES encryption data for the remote input stream. This must be
|
||||||
// the same as what was passed as rikey and rikeyid
|
// the same as what was passed as rikey and rikeyid
|
||||||
|
|
|
||||||
|
|
@ -166,10 +166,10 @@ static PSDP_OPTION getAttributesList(char *urlSafeAddr) {
|
||||||
|
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].rateControlMode", "4");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].rateControlMode", "4");
|
||||||
|
|
||||||
if (StreamConfig.remote) {
|
if (StreamConfig.streamingRemotely) {
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].averageBitrate", "4");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].averageBitrate", "4");
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].peakBitrate", "4");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].peakBitrate", "4");
|
||||||
}
|
}
|
||||||
|
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].timeoutLengthMs", "7000");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].timeoutLengthMs", "7000");
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].framesWithInvalidRefThreshold", "0");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].framesWithInvalidRefThreshold", "0");
|
||||||
|
|
@ -214,7 +214,7 @@ static PSDP_OPTION getAttributesList(char *urlSafeAddr) {
|
||||||
|
|
||||||
err |= addAttributeString(&optionHead, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000");
|
err |= addAttributeString(&optionHead, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000");
|
||||||
|
|
||||||
if (StreamConfig.remote) {
|
if (StreamConfig.streamingRemotely) {
|
||||||
err |= addAttributeString(&optionHead, "x-nv-vqos[0].qosTrafficType", "0");
|
err |= addAttributeString(&optionHead, "x-nv-vqos[0].qosTrafficType", "0");
|
||||||
err |= addAttributeString(&optionHead, "x-nv-aqos.qosTrafficType", "0");
|
err |= addAttributeString(&optionHead, "x-nv-aqos.qosTrafficType", "0");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue