HTML5 Video Tag Not Playing -


i'm trying utilize html5 video tag autoplay mov or mp4 video when page loaded. however, video isn't playing when page loads. here code:

<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8" /> <title>bropocalypse</title> <style> body {background:#000000; margin:100px;}  p {font-size:36px; text-align:right; margin:20px 0px;}  a:link, a:hover, a:visited {color:#ff0000; text-decoration:none;}  .trailer {width:700px; height:100%; margin:0 auto;} </style> </head> <body> <div class="trailer">     <video width="700" height="400" src="trailer.mp4" poster="trailer.mp4" controls="controls" autoplay="autoplay" type="video/mp4; codecs='avc1.42e01e, mp4a.40.2'">     <p>if reading this, because browser not support html5 video element.</p>     </video> <p><a href="about.php"><img src="images/skip.png" alt="skip >>" /></a></p> </div> </body> </html> 

the page can found here: http://www.tcnj.edu/~moore56/game-design/bropocalypse/. please let me know of suggestions or questions might have. thank you.

first of all, try using html5 doctype html5 stuff, not xhtml 1.0 doctype.

i tested code , didn't work me, however, when replaced video test .m4v video (from here) worked on chrome browser, problem doesn't seem html code.

note serving video file text/plain content type, can't right.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -