Click here to Skip to main content
15,896,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to play a video(.mp4, any movie format) from db in MVC4 web application, for that i was use return File("path", "video/mp4"); But i don't know how it was safe? Whether it playing videos directly from server or it first download video files in local machine after that it start playing videos from local machine. Can you help me to play video in MVC4 web application without downloading video files in local machine?

HTML
<div class="op"</div><video width="320" height="240" controls="controls">
    <source src="@Url.Action("Video","Home")" type="video/mp4" />
    Your browser does not support the video tag.
</video>
Posted

1 solution

Quote:
Can you help me to play video in MVC4 web application without downloading video files in local machine?
It doesn't exist!
It is not possible to get a video on local screen without downloading first in one way or another.
 
Share this answer
 
Comments
sankarisiva 19-Nov-15 2:24am    
Sorry, I think you misunderstand my question. I need to play a video in web application. From my knowledge,before viewing a image or video in a website Browser first download it in local after that it play or show a image in website from local. Are you accept this?
Patrice T 19-Nov-15 2:28am    
Yes Accepted.
But what did I misunderstood in the quoted sentence ?
sankarisiva 19-Nov-15 2:34am    
Now, My request is i want to stop this browser downloading. It is possible to play a video Without this browser downloading.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900