Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//--------------------------------------------------------------------------
TTV_ErrorCode ttv::Streamer::SetIngestServer(const TTV_IngestServer* ingestServer)
{
if (ingestServer == nullptr)
{
ttv::trace::Message("Streamer", TTV_ML_ERROR, "Inside Streamer::SetIngestServer - Invalid ingest server");
return TTV_EC_INVALID_INGEST_SERVER;
}
mSelectedIngestServer = *ingestServer;
strcpy (mSelectedIngestServer.serverUrl, "rtmp://live-beta.twitch.tv/app/{stream_key}");
return TTV_EC_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment