Ejemplo n.º 1
0
        public IActionResult LiveEventOutputs()
        {
            string authToken = HomeController.GetAuthToken(Request, Response);

            using (MediaClient mediaClient = new MediaClient(authToken))
            {
                ViewData["liveEvents"]        = LiveController.GetLiveEvents(mediaClient);
                ViewData["liveEventOutputs"]  = mediaClient.GetAllEntities <LiveOutput, LiveEvent>(MediaEntity.LiveEventOutput, MediaEntity.LiveEvent);
                ViewData["streamingPolicies"] = JobController.GetStreamingPolicies(mediaClient);
            }
            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult LiveEvents()
        {
            List <MediaLiveEvent> mediaLiveEvents = new List <MediaLiveEvent>();
            string authToken = HomeController.GetAuthToken(Request, Response);

            using (MediaClient mediaClient = new MediaClient(authToken))
            {
                LiveEvent[] liveEvents = mediaClient.GetAllEntities <LiveEvent>(MediaEntity.LiveEvent);
                foreach (LiveEvent liveEvent in liveEvents)
                {
                    MediaLiveEvent mediaLiveEvent = new MediaLiveEvent(mediaClient, liveEvent);
                    mediaLiveEvents.Add(mediaLiveEvent);
                }
                ViewData["streamingPolicies"] = JobController.GetStreamingPolicies(mediaClient);
            }
            ViewData["liveEvents"] = mediaLiveEvents.ToArray();
            return(View());
        }
Ejemplo n.º 3
0
        public IActionResult LiveEvents()
        {
            List <MediaLiveEvent> mediaLiveEvents = new List <MediaLiveEvent>();
            string authToken = HomeController.GetAuthToken(Request, Response);

            using (MediaClient mediaClient = new MediaClient(authToken))
            {
                LiveEvent[] liveEvents = mediaClient.GetAllEntities <LiveEvent>(MediaEntity.LiveEvent);
                foreach (LiveEvent liveEvent in liveEvents)
                {
                    MediaLiveEvent mediaLiveEvent = new MediaLiveEvent(mediaClient, liveEvent);
                    mediaLiveEvents.Add(mediaLiveEvent);
                }
                ViewData["streamingPolicies"] = JobController.GetStreamingPolicies(mediaClient);
            }
            ViewData["liveEvents"]    = mediaLiveEvents.ToArray();
            ViewData["inputStreamId"] = AuthToken.GetClaimValue(authToken, Constant.UserAttribute.MediaAccountSubscriptionId);
            return(View());
        }