mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-12 18:56:11 +00:00
Enable strict bitrate limits for remote streaming
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -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
|
||||
|
||||
Submodule moonlight-common-c updated: dd49e5bbfd...610c00bf2d
Reference in New Issue
Block a user