Vimeo’s new iframe embed code
As a follow-up to a previous post about embedding Vimeo videos and having them work on Apple’s iOS devices (iPhone, iPad and iPod Touch), Vimeo just announced their Universal Player which will deliver the appropriate video format for the device being used. Vimeo’s FAQ page has more info on it, but the new method uses an <iframe> HTML tag to frame in the content, and the player will detect the device to serve the right video file. YouTube has recently rolled out something similar. Vimeo’s code looks like this (line breaks were added):
<iframe src="http://player.vimeo.com/video/12345678?title=0&byline=0& portrait=0&color=CC6600" width="640" height="360" frameborder="0"></iframe>
I did some quick testing and it worked fine. Both the iPad and iPhone were delivered h.264 versions, while Mac and PC still get the standard Flash player. I would like to see Vimeo offer some embed options to include serving straight HTML5/h.264 to the desktop as well and avoid Flash altogether.
WordPress doesn’t like the <iframe> tag, so if you’re using WP you will need to install the Embed Iframe plugin. In my testing this plugin has supported the new Vimeo method within a WP post. I have a test page here where I embed two videos, the first one using the new iframe code and the second one with the earlier javascript workaround.
Posted: August 18th, 2010Filed under: Handheld, Innovation, Mobile, Video Tags: code, iOS, ipad, iphone, vimeo | 6 Comments »

Hi,
I still trying to use the Embed iframe plugin without succes. The plugin ignore the size I give him.
Could you please tell me your code ? (last wordpress version)
[iframe url width height]
Whatever width height the size is the same (small)
Don’t use the [iframe url width height] code as specified in the plugin. Instead, use the iframe code from Vimeo. You can edit the video dimensions in there, just change the width & height values to whatever you want.
Stacy
Thanks !
I have a joomla site that also doesn’t like the tag. Is there a workaround for this so that I can get my vimeo videos working on the iPhone using the new universal player?
Tom: I’m not familiar with the Joomla platform but I did a Google search for “Joomla iframe plugin” and found some resources. Looks like there should be a way to make this work. Here’s one, you might check the user community and see which ones have good ratings:
http://extensions.joomla.org/extensions/style-a-design/popups-a-iframes/4144
Thanks – been looking for how to put the parameters in the src section for a while!