This project is read-only.

Inline video using HTML5 code

Oct 17, 2012 at 3:54 AM


I’m using Windows 7 Professional, ASP.NET MVC 4, and trying to show an inline video by using HTML5 code. In the code below, the poster will show up, but the Wildlife video will not; I can right-click the poster and a window will open with the play function, but when I click it nothing happens. I have found several variations to the enclosed code, but they all act the same. Can someone suggest a possible solution?

It will play in the Safari browser, but not in Internet Explorer.




<video width="600" poster="Content/Vocation Card2.jpg" controls preload="auto">
    <source src="Content/Wildlife_x264.mp4" type="video/mp4; codecs=avc1.42E01E, mp4a.40.2">/>