Im not really Sure about your question but from what I understand, you want to stop people from downloading your html5 video. To do so you can Either use this method or mine: make 2 cshtml pages: page and ogvpage (you have tagged your question asp.net). insert this code in page:
var request = UrlData[0];
if(Request.Cookies["allow"] != null){
Response.Redirect(Href("VIDEO PATH", request + ".mp4"));
}
and this in ogvpage:
var request = UrlData[0];
if(Request.Cookies["allow"] != null){
Response.Redirect(Href("VIDEO PATH", request + ".ogv"));
}
page 1 will serve the mp4 video and 2 will serve ogv. open the page you want video on and replace your video element with this:
<video>
<source src="/page/video name without extention" type="video/mp4"/>
<source src="/ogvpage/video name without extention" type="video/ogv>
</video>
and finally put this at the top of your page:
if(Request.Cookies["allow"] == null){
HttpCookie myCookie = new HttpCookie("allow");
myCookie.Value = "true";
myCookie.Expires = DateTime.Now.AddSeconds(5);
Response.Cookies.Add(myCookie);
}