/// <summary> /// Streams audio /// </summary> /// <returns>Stream</returns> public ActionResult Stream() { NAudioStreamer.StartStreaming(); //It never reaches that point below, it flushes response continously return(Content("")); }
protected override void OnActionExecuting(ActionExecutingContext filterContext) { //Create ActionLog object to insert ActionLog log = new ActionLog() { Date = DateTime.Now, IP = HttpContextHelper.GetHostName(), Action = RouteData.Values["action"].ToString() }; //Add IP to the list ActionLogManager.Insert(log); //Fill ViewBag ViewBag.Version = $"?n={ConfigurationManager.AppSettings["StaticContentVersion"]}"; ViewBag.LastIPsAndActions = ActionLogManager.GetList(); ViewBag.Streamers = NAudioStreamer.GetStreamers(); base.OnActionExecuting(filterContext); }