예제 #1
0
        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);
        }
예제 #3
0
 protected void HandleIngestListReceived(IngestList list)
 {
     // TODO: populate your list box with them
 }
예제 #4
0
        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);
            }
        }
예제 #5
0
 internal IngestTester(Stream stream, IngestList ingestList)
 {
     m_Stream = stream;
     m_IngestList = ingestList.Servers;
 }
예제 #6
0
 void IStreamCallbacks.GetIngestServersCallback(ErrorCode result, IngestList ingestList)
 {
 }
예제 #7
0
 protected void HandleIngestListReceived(IngestList list)
 {
     // TODO: populate your list box with them
 }
예제 #8
0
 internal IngestTester(Stream stream, IngestList ingestList)
 {
     m_Stream     = stream;
     m_IngestList = ingestList.Servers;
 }
예제 #9
0
 void IStreamCallbacks.GetIngestServersCallback(ErrorCode result, IngestList ingestList)
 {
 }
예제 #10
0
 internal IngestTester(BroadcastApi stream, IngestList ingestList)
 {
     m_Stream     = stream;
     m_IngestList = ingestList.Servers;
 }
예제 #11
0
 void IBroadcastApiListener.GetIngestServersCallback(ErrorCode result, IngestList ingestList)
 {
 }
        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);
        }
예제 #13
0
 void IBroadcastApiListener.GetIngestServersCallback(ErrorCode result, IngestList ingestList)
 {
 }
예제 #14
0
 internal IngestTester(BroadcastApi stream, IngestList ingestList)
 {
     m_Stream = stream;
     m_IngestList = ingestList.Servers;
 }
예제 #15
0
            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);
                }
            }
예제 #16
0
 protected void FireIngestListReceived(IngestList ingestList)
 {
     try
     {
         if (m_BroadcastController.IngestListReceived != null)
         {
             m_BroadcastController.IngestListReceived(ingestList);
         }
     }
     catch (Exception x)
     {
         ReportError(x.ToString());
     }
 }