Welcome to WebmasterWorld Guest from 54.144.77.26

Forum Moderators: open

Message Too Old, No Replies

html5 video tag plays only on Chrome and Opera

     

phex

12:58 pm on Jan 9, 2012 (gmt 0)

5+ Year Member



<video controls poster="video.jpg" width="854" height="480">
<source src="video.mp4" type="video/mp4">
<source src="video.webm" type="video/webm">
<source src="video.ogv" type="video/ogg"
<object type="application/x-shockwave-flash" data="player.swf"
width="854" height="504">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="file=video.mp4">
<!--[if IE]><param name="movie" value="player.swf"><![endif]-->
<img src="video.jpg" width="854" height="480" alt="Video">
<p>Your browser canít play HTML5 video. <a href="video.webm">
Download it</a> instead.</p>
</object>
</video>

The above video tag comes from [dev.opera.com...]

On my local machine, the tag plays well on all latest browsers IE9, firefox7, opera10 chrome and I use WAMP server ver 2.1.

Now after uploading them to my website, only Chrome and Opera plays the videos exept IE9 and firefox.

Are there some settings that I need to change on my actual website server or what?

penders

8:11 am on Feb 29, 2012 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



It's possible that your live web server is not sending the correct mime-types for the requested media files. (Presumably your host does allow you to serve these types of files?)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month