Embedding video that work in all browser, including iPhone?

Last modified on:

Well, to code for an iPhone, so that the video will stream to the device, do this:

<embed src="your_preview_file.jpg"
href="test.m4v"
target="myself"
width="176" height="132"
controller="false"
autoplay="false"
scale="1"
cache="true"
type="video/quicktime"
pluginspage="http://www.apple.com/quicktime/download/">

But to make it work across all browsers.. I’m still working on that bit!

Update: I came across this page that shows how to detect the iphone device and offer the relevant video for it whilst allowing standard browsers to still render the file. Take a peek at the code – it’s quite elegant.


Published on

in

by

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *