I am trying to create an aspx page on visual studio 2010 framework 4.0 which displays videos. Now I have used this simple code but it is downloading videos instead of displaying them (same issue if the video was .mp4 or .wmv):
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<iframe width="560"
height="315"
src="TEST VIDEO.mp4"
frameborder="0"
allowfullscreen></iframe>
</body>
</html>
I have tried to create a simple html page on notepade++ with this simple code:
<!DOCTYPE html>
<html>
<head>
<title>Silverlight Video</title>
</head>
<body>
<video width="320" height="240" controls="controls">
<source src="C:/Users/Public/Videos/Sample Videos/TEST VIDEO.mp4" type="video/mp4" />
</video>
</body>
</html>
Video is working perfectly on Chrome but on firefox it returns this error:
No Video with supported Format and MIME found, and on IE it returns Invalid Source.
To sum up, how can I solve one of these 2 problems and display the video on those three browsers?
What I have tried:
I have added the MIME in IIS manager as I am using windows 7 to solve the problem on IE but not working.