mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Use automatic remote streaming detection
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: 396b02a94d...639ff18dbb
Reference in New Issue
Block a user