0
Posted on 5:33 AM by Softminer and filed under

public void ProcessRequest(HttpContext context)
    {
        String FileName = "Test.mp4";
        String FilePath = "Test.mp4";
        System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
        response.ClearContent();
        response.Clear();
        response.ContentType = "video/mpeg";
        response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
        response.AppendHeader("Access-Control-Allow-Origin", "*");
        response.TransmitFile(FilePath);
        response.Flush();
        response.End();  

    }


Here is an example of Range-Specific Request in ASP.NET
, Sample
0
Responses to ... How to write video handler in C#