Exemplo n.º 1
0
        public static DateTime?GetEventStart(string accountName, string channelName)
        {
            DateTime?      eventStart   = null;
            EntityClient   entityClient = new EntityClient();
            string         tableName    = Constants.Storage.TableName.LiveEvent;
            MediaLiveEvent liveEvent    = entityClient.GetEntity <MediaLiveEvent>(tableName, accountName, channelName);

            if (liveEvent != null)
            {
                eventStart = liveEvent.EventStart;
            }
            return(eventStart);
        }
Exemplo n.º 2
0
        public string GetLiveOutputUrl(LiveEvent liveEvent)
        {
            string         liveOutputUrl  = string.Empty;
            MediaLiveEvent mediaLiveEvent = new MediaLiveEvent(this, liveEvent);

            if (mediaLiveEvent.Outputs.Length > 0)
            {
                LiveOutput liveOutput    = mediaLiveEvent.Outputs[0];
                string[]   streamingUrls = GetStreamingUrls(liveOutput.AssetName);
                if (streamingUrls.Length > 0)
                {
                    liveOutputUrl = streamingUrls[0];
                }
            }
            return(liveOutputUrl);
        }