mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Use automatic remote streaming detection
This commit is contained in:
parent
9c7df02941
commit
065a6caee5
@ -315,6 +315,8 @@ void Session::initialize()
|
|||||||
m_StreamConfig.fps = m_Preferences->fps;
|
m_StreamConfig.fps = m_Preferences->fps;
|
||||||
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
|
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
|
||||||
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
|
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
|
||||||
|
m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO;
|
||||||
|
m_StreamConfig.packetSize = 1392;
|
||||||
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Video bitrate: %d kbps",
|
"Video bitrate: %d kbps",
|
||||||
@ -382,20 +384,6 @@ void Session::initialize()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_Computer->activeAddress == m_Computer->remoteAddress) {
|
|
||||||
m_StreamConfig.streamingRemotely = 1;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_StreamConfig.streamingRemotely = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_Computer->activeAddress == m_Computer->localAddress) {
|
|
||||||
m_StreamConfig.packetSize = 1392;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_StreamConfig.packetSize = 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (m_Preferences->windowMode)
|
switch (m_Preferences->windowMode)
|
||||||
{
|
{
|
||||||
case StreamingPreferences::WM_FULLSCREEN_DESKTOP:
|
case StreamingPreferences::WM_FULLSCREEN_DESKTOP:
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 396b02a94db4db291524a867106464357db1fdac
|
Subproject commit 639ff18dbbcde35ca918c2e898e20bd2a624fdc5
|
Loading…
x
Reference in New Issue
Block a user