UI: Add Auth and OAuth classes

Allows the ability to authenticate to a specific service.  Typically via
OAuth.
This commit is contained in:
jp9000 2019-02-06 22:24:25 -08:00
commit 08fb29a035
10 changed files with 543 additions and 4 deletions

View file

@ -651,6 +651,10 @@ bool SimpleOutput::StartStreaming(obs_service_t *service)
if (!Active())
SetupOutputs();
Auth *auth = main->GetAuth();
if (auth)
auth->OnStreamConfig();
/* --------------------- */
const char *type = obs_service_get_output_type(service);
@ -1426,6 +1430,10 @@ bool AdvancedOutput::StartStreaming(obs_service_t *service)
if (!Active())
SetupOutputs();
Auth *auth = main->GetAuth();
if (auth)
auth->OnStreamConfig();
/* --------------------- */
int trackIndex = config_get_int(main->Config(), "AdvOut",