mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 08:36:42 +00:00
Enable strict bitrate limits for remote streaming
This commit is contained in:
parent
ee803c6247
commit
b993edae58
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.height = stoi(height);
|
||||||
m_StreamConfig.fps = stoi(fps);
|
m_StreamConfig.fps = stoi(fps);
|
||||||
m_StreamConfig.bitrate = stoi(bitrate); // kilobits per second
|
m_StreamConfig.bitrate = stoi(bitrate); // kilobits per second
|
||||||
m_StreamConfig.streamingRemotely = 0;
|
|
||||||
m_StreamConfig.audioConfiguration = AUDIO_CONFIGURATION_STEREO;
|
m_StreamConfig.audioConfiguration = AUDIO_CONFIGURATION_STEREO;
|
||||||
|
m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO;
|
||||||
// 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.packetSize = 1392;
|
m_StreamConfig.packetSize = 1392;
|
||||||
|
|
||||||
// Load the rikey and rikeyid into the stream configuration
|
// Load the rikey and rikeyid into the stream configuration
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit dd49e5bbfd116d708b35f94d8aa165ce061f39ec
|
Subproject commit 610c00bf2d54698a13eb1b84d27b7e927a157a40
|
Loading…
x
Reference in New Issue
Block a user