mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-11-28 16:54:47 +00:00
Enable strict bitrate limits for remote streaming
This commit is contained in:
1 parent
ee803c6247
commit
b993edae58
2 files changed
+2
-7
No files matched your search
@@ -211,13 +211,8 @@ void MoonlightInstance::HandleStartStream(int32_t callbackId, pp::VarArray args)
|
||||
m_StreamConfig.height = stoi(height);
|
||||
m_StreamConfig.fps = stoi(fps);
|
||||
m_StreamConfig.bitrate = stoi(bitrate); // kilobits per second
|
||||
m_StreamConfig.streamingRemotely = 0;
|
||||
m_StreamConfig.audioConfiguration = AUDIO_CONFIGURATION_STEREO;
|
||||
|
||||
// The overhead of receiving a packet is much higher in NaCl because we must
|
||||
// pass through various layers of abstraction on each recv() call. We're using a
|
||||
// higher than normal default video packet size here to reduce CPU cycles wasted
|
||||
// receiving packets. The possible cost is greater network losses.
|
||||
m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO;
|
||||
m_StreamConfig.packetSize = 1392;
|
||||
|
||||
// Load the rikey and rikeyid into the stream configuration
|
||||
|
||||
+1
-1
Submodule moonlight-common-c updated: dd49e5bbfd...610c00bf2d.
Reference in new issue
Block a user