void IStreamCallbacks.GetIngestServersCallback(ErrorCode result, IngestList ingestList) { if (Error.Succeeded(result)) { m_IngestList = ingestList; // assume we're going to use the default ingest server unless overidden by the client m_IngestServer = m_IngestList.DefaultServer; SetBroadcastState(BroadcastState.ReceivedIngestServers); try { if (IngestListReceived != null) { IngestListReceived(ingestList); } } catch (Exception x) { ReportError(x.ToString()); } } else { string err = Error.GetString(result); ReportError(string.Format("IngestListCallback got failure: {0}", err)); // try again SetBroadcastState(BroadcastState.LoggedIn); } }
protected void UnityIosIngestListCallback(string message) { LitJson.JsonReader reader = new LitJson.JsonReader(message); IngestListCallbackData data = new IngestListCallbackData(); JsonReadObject(reader, data, this.ReadIngestServerObject); IngestList ingestList = new IngestList(); ingestList.List = data.servers.ToArray(); IngestListCallback(data.status, ingestList); }
protected void HandleIngestListReceived(IngestList list) { // TODO: populate your list box with them }
internal IngestTester(Stream stream, IngestList ingestList) { m_Stream = stream; m_IngestList = ingestList.Servers; }
void IStreamCallbacks.GetIngestServersCallback(ErrorCode result, IngestList ingestList) { }
internal IngestTester(BroadcastApi stream, IngestList ingestList) { m_Stream = stream; m_IngestList = ingestList.Servers; }
void IBroadcastApiListener.GetIngestServersCallback(ErrorCode result, IngestList ingestList) { }
void IStreamCallbacks.GetIngestServersCallback(ErrorCode result, IngestList ingestList) { if (Error.Succeeded(result)) { this.IngestList = ingestList; // assume we're going to use the default ingest server unless overidden by the client this.IngestServer = ingestList.DefaultServer; SetBroadcastState(BroadcastState.ReceivedIngestServers); FireIngestListReceived(ingestList); } else { string err = Error.GetString(result); ReportError(string.Format("IngestListCallback got failure: {0}", err)); // try again SetBroadcastState(BroadcastState.LoggedIn); } }
protected void FireIngestListReceived(IngestList ingestList) { try { if (m_BroadcastController.IngestListReceived != null) { m_BroadcastController.IngestListReceived(ingestList); } } catch (Exception x) { ReportError(x.ToString()); } }