UI: Enable WHIP service in UI

This provides the UI glue to enable the WHIP service introduced in the
obs-webrtc plugin.

Co-authored-by: John Bradley <jocbrad@twitch.tv>
Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
Sean DuBois
2023-04-06 21:52:13 -04:00
committed by Colin Edwards
parent 851a8c216e
commit dd392188b8
4 changed files with 63 additions and 13 deletions

View File

@@ -1369,7 +1369,8 @@ bool OBSBasic::LoadService()
return false;
/* Enforce Opus on FTL if needed */
if (strcmp(obs_service_get_protocol(service), "FTL") == 0) {
if (strcmp(obs_service_get_protocol(service), "FTL") == 0 ||
strcmp(obs_service_get_protocol(service), "WHIP") == 0) {
const char *option = config_get_string(
basicConfig, "SimpleOutput", "StreamAudioEncoder");
if (strcmp(option, "opus") != 0)