提交 88c10380 编写于 作者: S SoftArch

UI: Add support for Restream "Auto" server in auto-config

Uses the "Auto" server automatically for Restream rather than doing a region-based test on multiple servers.
上级 87ca80de
......@@ -219,6 +219,10 @@ void AutoConfigTestPage::TestBandwidthThread()
string_depad_key(key);
key += "?bandwidthtest";
}
else if(wiz->serviceName == "Restream.io" || wiz->serviceName == "Restream.io - RTMP") {
string_depad_key(key);
key += "?test=true";
}
obs_data_set_string(service_settings, "service",
wiz->serviceName.c_str());
......@@ -246,8 +250,9 @@ void AutoConfigTestPage::TestBandwidthThread()
GetServers(servers);
/* just use the first server if it only has one alternate server,
* or if using Mixer due to its "auto" server */
if (servers.size() < 3 || wiz->serviceName == "Mixer.com - FTL") {
* or if using Mixer or Restream due to their "auto" servers */
if (servers.size() < 3 || wiz->serviceName == "Mixer.com - FTL" ||
wiz->serviceName.substr(0, 11)=="Restream.io") {
servers.resize(1);
} else if (wiz->service == AutoConfig::Service::Twitch &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册