In my ASP.NET MVC 4, I want to stream video using HTML5 <video> . The video is saved in this place D:\movie\test.mp4 .
How to place this location as the source of the <video> ? I tried:
<source src="@Url.Content(@"D:\movie\test.mp4")" type="video/mp4" />
but does not work. If I add files to my project and do it like this, <source src="@Url.Content("~/Script/test.mp4")" type="video/mp4" /> it will work.
What is the correct way to associate a source with a local file without placing it in a project?
Also, should media files be submitted to IIS? What is the best practice for this, it is assumed that the location of the media is pulled from a table in the database?
source share