UI: Add Amazon IVS auto config QoL changes

This doesn't generally make the speedtest work for Amazon IVS, since
most Amazon IVS channels will be disconnected if the bitrate being
sent exceeds the upper limit for that channel.
This commit is contained in:
Ruwen Hahn 2024-04-11 14:27:44 +02:00 • committed by Ryan Foster
commit adcaf539c9
3 changed files with 30 additions and 4 deletions

View file

@ -221,7 +221,8 @@ void AutoConfigTestPage::TestBandwidthThread()
OBSDataAutoRelease output_settings = obs_data_create();
std::string key = wiz->key;
if (wiz->service == AutoConfig::Service::Twitch) {
if (wiz->service == AutoConfig::Service::Twitch ||
wiz->service == AutoConfig::Service::AmazonIVS) {
string_depad_key(key);
key += "?bandwidthtest";
} else if (wiz->serviceName == "Restream.io" ||
@ -266,8 +267,10 @@ void AutoConfigTestPage::TestBandwidthThread()
wiz->serviceName == "Nimo TV") {
servers.resize(1);
} else if (wiz->service == AutoConfig::Service::Twitch &&
wiz->twitchAuto) {
} else if ((wiz->service == AutoConfig::Service::Twitch &&
wiz->twitchAuto) ||
(wiz->service == AutoConfig::Service::AmazonIVS &&
wiz->amazonIVSAuto)) {
/* if using Twitch and "Auto" is available, test 3 closest
* server */
servers.erase(servers.begin() + 1);