I've done a little digging, and played with the Video for Everyone code that is recommended. I ended up with this:
Code:
<video controls="controls" poster="http://www.theimagineershome.com/blog/video/10_what_is_time/what_is_time.jpg" width="320" height="240" autoplay>
<source src="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.mp4" type="video/mp4" />
<source src="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.webm" type="video/webm" />
<source src="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.ogg" type="video/ogg" />
<!-- Fallback object using Flow Player -->
<object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="320" height="240">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashVars" value="config={'playlist':[ 'http://www.theimagineershome.com/blog/video/10_what_is_time/what_is_time.jpg',{'url':'http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.mp4','autoPlay':false}]}" />
<img alt="My Movie" src="http://www.theimagineershome.com/blog/video/10_what_is_time/what_is_time.jpg" width="320" height="240" title="No video playback capabilities, please download the video below." />
</object>
<!-- Fallback Text -->
Your browser does not appear to support the video element or Flash. Please download the video below.
</video>
<p><strong>Download video:</strong> <a href="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.mp4">MP4 format</a> | <a href="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.ogg">Ogg format</a> | <a href="http://www.theimagineershome.com/blog/video/10_what_is_time/10_what_is_time.webm">WebM format</a></p>
It worked in FF, Chrome, Safari, Opera, iPhone and IE8, but it had a problem in IE9. After some investigation, it seems the problem is that you need to tell your server to allow certain types of files, such as mp4. You can do this in a .htaccess file.
These are a tad messy, though. If you have access to your web server, look in your root folder and see if you can find a file there called .htaccess. If it's there, open it up and paste in this code, and save it:
Code:
AddType video/ogg .ogg
AddType video/mp4 .mp4
AddType video/webm .webm
If there isn't a .htaccess file there already, you can just create one and then paste in that code.
Sorry if that's all a bit confusing, but it confuses me too. There's no way around dipping your toe into these things if you want to manage your own website, though.
Bookmarks