html - Firefox and Chrome can't play HTML5 mp4 video -


i have html page contains mp4 video:

<html> <body>  <video width="800" height="600" controls>   <source src="/static/xyz.mp4" type="video/mp4">   <p>your browser not support video tag.</p> </video>  </body> </html> 

when load page in firefox, doesn't show play control buttons shows error message "no video supported format , mime type found" (see screenshot below).

screenshot of firefox when playing video

so use this site test browser's ability play html5 mp4 video , can play test video on site. firefox version v36 on centos linux. tried using chrome , can't play either. tried on firefox/chrome on windows failed. use firefox debugger @ debug info , see following message:

media resource http://localhost:5000/static/xyz.mp4 not decoded. candidate resources failed load. media load paused. 

i tried playing xyz.mp4 video on local machine using linux's movie player , plays fine , plays fine in window's media player. when use above html5 <video> tag, doesn't play browsers in both linux , windows. followed mozilla's online forum change browser settings , clear caches none of them works. caused problem of simple html5 ?

this problem video file. mp4 not format, container can hold video in different formats. firefox supports h.264 encoded video.

simply speaking, there several types of mp4 files , not of them supported browser. verify this, can download 1 of videos quicksmode website , replace video it.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -