Forums / API
New embed code
Forums
Forum Rules
-
Be nice
Even if you disagree with someone, keep it civil.
-
Stay on topic
If it’s not relevant, leave it out or start a new thread.
-
Don’t Spam
Re-re-re-re-posts drive us crazy.
-
Respect the Staff
We were members once, just like you.
Our Support Team
-
Mark
-
Ian
-
Tommy
-
Darnell
-
Zena
-
Rebecca
We’re here to help 10am–6pm Eastern, Monday–Friday.
Brad Dougherty Staff
Let us know if you have any issues with the new embed code returned by oEmbed!
Mercedes-Benz DFashion México
Hi, I have a free vimeo account and I need to remove the playbar with the controls and vimeo add to my company..
If I buy vimeo plus, Can I remove this playbar embed?
Thanks much
E-grafika.lt
Yes, you can disable the playbar if you have a vimeo plus account. Open settings page for desired video, locate "Embedding" and there you will find "Show playbar" option (among many other cool options).
However, I am not sure this is related to Vimeo API. Good luck.
Cesar Aracena Plus
Hi Brad,
I do have one problem. I have to manually edit the embed code to remove the embed part of it as XHTML 1.1 validators don´t like it. With that in the code, my site (or page where the video is showed) won't validate. You could put a checkbox we could uncheck to remove that part and include one more line in the line. The following complete embed code works great for me:
object type="application/x-shockwave-flash" data="vimeo.com/moogaloop.swf?clip_id=4971809&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" width="400" height="300"
param name="allowfullscreen" value="true" /
param name="allowscriptaccess" value="always" /
param name="movie" value="vimeo.com/moogaloop.swf?clip_id=4971809&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /
/object
*** I TOOK OUT THE < and > SO THE CODE WILL DISPLAY ***
As you can see I need to manually take the EMBEDE part out and add the "TYPE" and "DATA" attributes to the object tag. Easy for you to do ;)
Cheers,
Brad Dougherty Staff
Hi Cesar,
We are currently testing a new embed code with oEmbed only. vimeo.com/api/docs/oembed
It does away with the embed tag and has an option to be returned as either xhtml or html. It will eventually make it to the one we give out on video pages, but we want to make sure it works everywhere first.
Tauranga House of Prayer
I would also add:
param name="wmode" value="opaque" /
This prevents flash from "defaulting" to the top "layer". It will obey your z-index rules in your css. (drop down menus will stop going under it)
Süperfad PRO
I have a video with HD embedding enabled for superfad.com. It works with the cut and paste code, but only shows in SD when using oembed.
Here's an example page:
superfad.com/beta/superfad/vimeotest
Brad Dougherty Staff
We're investigating this...
Scott Garner Plus
Any updates on this problem?
Wattan TV Plus
helloo ,, is there away to allow our video viewers to play video and be able to make the playbar more flexible soo viewers can move in time frame like youtube .
Regards
Enoch Magazine Plus
Brad
this change in code has shot down our main player on our homepage. i need to fix this asap as im leaving the usa for the next 5 days.
enochmagazine.com
what do i need to change to make this work
Enoch Magazine Plus
i beleive the prob is something with oemebed code you changed on your end. even the simple php code example you provide no longer works. i am replacing the code on the main page with a simple embed code as i will be out of the country but an example can be found on this page on our site.
enochmagazine.com/skid-row-videos
Brad Dougherty Staff
We had an issue with the Simple API that is now fixed.
Rosita Di Trolio
I am having a HUGE issue with this, video is NOT posting to my blog!
Says the creator has not given permission for this? (I am the 'creator')
I blog using blogger.
Trying to embed here and can't.
help please
Brad Dougherty Staff
Please post in the help forum, this thread only involves the oembed API.
Ryan Hargrave
I have the no HD issue as talked about above. Only embeds as SD
Ryan Hargrave
Another question. One of the PLUS member privacy options is "Hide this video from vimeo.com" which is really nice.
I'm building a simple page that I can share rough-cut video's etc with others and that option is great because those rough-cuts never show up in my Vimeo feed.
However, I can only grab the embed code via oembed. Based on the settings, I should be able to grab the thumbnail, title, etc...
Perhaps I'm misunderstanding the use of the setting "Hide this video from vimeo.com"but i view it as I can get to anything I need to via public API methods, but it doesn't show up anywhere on Vimeo itself.
any chance of opening up oembed to allow title, thumbnail,etc.. for the plus members that have other privacy options?
Huseyin Aydin
Hey ! I have downloaded the last version but I have a problem :
I'm making a website in which I want a Vimeo video.
The player works perfectly in local, on my computer. But I try to launch it on a server, it doesn't work and I don't know why.
You can see de link below :
metinarolat.com.tr/test/
If you clic on Multimedia and on the screen on the page, the website will become darker and the video should begin but it doesn't.
I have looked at the Tamper Data and I saw that the video doesn't load any crossdomain.xml. Besides this, it doesn't calla any URL=vimeo.com/moogaloop/load/clip: ... after the first call.
Do you know why ?
Thanks !
Maria Chapéu
I also have this problem, but I'm using froogaloop how you solved it?
Huseyin Aydin
Problem resolved !
Ondra nevim
Hi, I have a problem, actually two problems
the first is I cant start a new topic :) so Im writting to this one
the second problem is I cant find a way to start playing embeded video from the middle, im searching for some parameter like :
start=60 -> to start from one minute ..
I hope you understand my problem :)
thanks for answers
Brad Dougherty Staff
The only way to do this would be to use the Moogaloop Javascript API to start loading the video, then seek to the time you want when it gets loaded.
Ondra nevim
Hi, thanks for answer, i tried the api_seekTo function but it just doesnt work.Can you please take a look on this code and tell me if anything I did is wrong ?
Vimeo Moogaloop API Example using Mootools
var video_id = 1243024;
var moogaloop = false;
function vimeo_player_loaded(swf_id) {
moogaloop = $(swf_id);
$('controls').setStyle('display', '');
Swiff.remote(moogaloop, 'api_play');
Swiff.remote(moogaloop, 'api_setVolume', 0);
Swiff.remote(moogaloop, 'api_setLoop', true);
Swiff.remote(moogaloop, 'api_seekTo', 200);
}
// Run the javascript when the page is ready
window.addEvent('domready', function() {
// For more Swiff documentation visit: mootools.net/docs/core/Utilities/Swiff
var swf_id = 'moogaloop';
var moogaloop = new Swiff('vimeo.com/moogaloop.swf';, {
id: swf_id,
container: 'vimeo_player_holder',
width: 504,
height: 340,
vars: {
clip_id: video_id,
show_portrait: 1,
show_byline: 1,
show_title: 1,
fullscreen:0,
js_api: 1, // required in order to use the Javascript API
js_onLoad: 'vimeo_player_loaded', // moogaloop will call this JS function when it's done loading (optional)
js_swf_id: 'moogaloop' // this will be passed into all event methods so you can keep track of multiple moogaloops (optional)
}
});
});
thanks a lot :)
Charles Miller
Hi, same problem as Ondra, in that I can't post a new topic. Just hangs.
My real question is, is there a method we can call to pull a videos name/title when using the Moogaloop javsactipt API?
Thanks
Sam Jesso
I'm wondering, are videos transcoding seen as not found to the embed?
This is misleading. Here's what I'm talking about:
hostthatimage.com/?di=012831328551
As you can see the video ID in the URL below the title is the same as the one used in the embed code. The video exists, but is transcoding.
Edit: It has since finished, and now it exists.
hostthatimage.com/?di=3128316568810
Ryan Hargrave
will the API be updated to deliver the new iframe based embed code?
Brad Dougherty Staff
It already does!
Ryan Hargrave
so it does! i was just looking at the docs and didn't try an actual call.
nice!
Paula White Plus
Just to help anyone who might be having issues with the embed code and IE7...
Be sure to declare your DOCTYPE at the top of your HTML document. This was causing major problems for me the past few days before figuring this out. I'm not sure why exactly, perhaps because the vimeo iframe declares a doctype and conflicts with your parent browser if it does NOT declare the doctype, or something.
Anyway, hope this helps some of you.
Bisaccia Network
how can I make the par api work?
I'm passing it to with a url like this:
vimeo.com/api/oembed.xml?url=http://vimeo.com/7100569&api=true
but in the code I don't get any api reminder.
However if I use the old embed code ( vimeo.com/api/oembed.xml?url=http://vimeo.com/7100569&api=true&iframe=false ) it works properly.
Thanks for any reply.
Brad Dougherty Staff
You'll need to update your Moogaloop API code if you want to use the iframe, because it's impossible to communicate directly with the player inside the iframe.
vimeo.com/api/docs/moogaloop#universal
Bisaccia Network
It doesn't work for me :(
I get this javascript error: Uncaught TypeError: Object # has no method 'addEvent'
(On google chrome)
The iframe code is:
dpaste.com/237982/
and the js is:
dpaste.com/237980/
Thanks again for the reply.
Joseph Schmitt Staff
Are you linking to the Froogaloop javascript file in your document? Can you provide me a link to the page where you have this code, so that I can help you debug?
Thanks.
Bisaccia Network
code is here: tv.bisaccia.info/
thanks ;)
Ajeje Brazorf
Hello
I'm using oembed with this request url:
http://vimeo.com/api/oembed.xml?url=http%3A//vimeo.com/$id&byline=0&title=0&portrait=0
Very strange thing happens: on certain video it works properly, in some other case (cannot see the difference) i see a alpha:0.75 picture instead of the player.
I checked out the resulting html of one working case and one broken case, both reports the very same html code. What i am using from the response object is the ->html property, that does contain in both cases one iframe with a (apparently) correct source url.
Brad Dougherty Staff
Do you have a link to where this is happening and the IDs of the videos?
Ajeje Brazorf
Ops
Forgot to say that disabling iframe mode anything works properly.
Ajeje Brazorf
Sorry i have not because the site is in production and i have been forced to set iframe=0 in order to make it work
Will let you know if i can reproduce the matter elsewhere
louisvillemetrogovernment
My video is not loading inside our firewall any more. Works externally fine but internally we have issues. We didn't make any changes to the firewall and have changed the video twice before now. It behaves differently inside now every time. Video loads correctly about 1 out of 10 times. Sometimes it's just blank, sometimes it's an all black and enlarged version of our thumbnail, once it even came up with "you must have flash player 10 to view." I have flash player 10. My code is below. Any help you can give would be great.
// This is the URL of the clip you want to load
var clipUrl = 'vimeo.com/14616717';;
// This is the oEmbed endpoint for Vimeo (we're using JSON)
// (Vimeo also supports oEmbed discovery. See the PHP example.)
var endpoint = 'vimeo.com/api/oembed.json';;
// Tell Vimeo what function to call
var callback = 'embedVideo';
// Put together the URL
var url = endpoint + '?url=' + encodeURIComponent(clipUrl) + '&width=200px&height=190px&callback=' + callback;
// This function puts the video on the page
function embedVideo(video) {
document.getElementById('embed').innerHTML = unescape(video.html);
}
// This function loads the data from Vimeo
function init() {
var js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', url);
document.getElementsByTagName('head').item(0).appendChild(js);
}
// Call our init function when the page loads
window.onload = init;
Tim Fantauzzo Plus
I have my videos set to "Hide this video from vimeo.com" in the privacy settings and to only show on my site's URL. I am using a Drupal module (emfield) to make the API call.
The problem I am experiencing is that the API response seems truncated with the above privacy settings. I am getting type, version, provider_name, provider_url, html, width, and height in that order.
As a matter of troubleshooting I created a video with no privacy settings and the API call was successful with a complete response.
Any insight would be helpful.
Brad Dougherty Staff
Only public videos will return the full information.
Tim Fantauzzo Plus
Thanks for the reply Brad. So.. would I need to used the Advanced API for my situation? Would that return the thumbnail information.
Edit (add).. You should note this in the API docs.
Nicolas Papon
hi! i'm using the oembed api to load your new HTML5 universal player. Well it works great (thx!!), but not on Opera... do I need to load some js or flash component (i'm currently just building the iframe you provide via oembed) ?
Brad Dougherty Staff
Can you give us a link to where this is happening?
Nicolas Papon
hello,
you can find a test instance here :
alvaro.webflows.fr
server login and passowrd : alvaro
then click on multimedia
I'm loading the iframe via ajax and the jquery replaceWith() function, which is perhaps not the best way to proceed :/. Let me know ...
Iktin
Brad Dougherty Staff
It's working fine for me in Opera except that the height just looks a little off.
It might be faster to just replace the src url of the iframe instead of replacing the whole thing.
Dan Hashemi
With the new iFrame code, is there any way to bring the layer down (z-index)?
We have navigation that is fixed to the top of the page, but when someone scrolls, the Vimeo video layers itself over everything else.
With the old code and some wmode transparent stuff, it works, but we'd really like to use the new code (the new iFrame).
Thanks!
Dan
Dan Hashemi
Any update on this by any chance?
Thanks :)
Brad Dougherty Staff
Can you send me a link to where this is happening?
kitschpatrol Plus
I have the same problem in Safari 5.0.2, but not in Firefox. Even if I set a low z-index for the containing iframe, the video still renders on top of everything.
Victoria Labalme Plus
This is happening for us as well. It only occurs in Safari (5.0.2), not Firefox (3.6.11). You can see it here:
victorialabalme.com
and
victorialabalme.com/clients/video_testimonials.html
Victoria Labalme Plus
Update: I opened the contents of the iframe directly in the browser (player.vimeo.com/video/15975882?title=0&byline=0&portrait=0) and inspected it. I see we aren't supposed to paste any html in here but it appears that the div with an id of a is given a zindex of 2000 and that of f is given a zindex of 100.
Victoria Labalme Plus
I could not leave new iframe embeds on site as are as the navigation becomes totally unusable in Safari. I've created a sample hidden page on the site that still uses the iframe embeds and illustrates the problem. If you go to the following page and mouse over the "Events and Services" or "Case Studies & Clients" nav options, you will see the problem - the drop-down menus go behind the videos.
victorialabalme.com/clients/video_testimonials_sample.html
Brad Dougherty Staff
Hi Victoria,
When I changed the z-index rule for iframes on your site to 1, the menu started working properly for me. But we will also take a look at decreasing our z-indexes inside the iframe.
Dan Hashemi
Well, here is what we did...not ideal, but still fixes the issues for now until it is resolved:
Use a simple screen capture of the first frame of the Vimeo video and when clicked, open the video in a modal box using FancyBox (fancybox.net/)
It'll still look nice and your navigation will work across all browsers. Hope that temporarily helps :)
Victoria Labalme Plus
Hi Brad, Did you change the equivalent of setting iframe globally in stylesheet to the z-index: 1? I did try that with no success, I imagined because those divs I can't control within the iframe are set to such a high index.
Thanks for your input Dan - it may just be the way we have to go - I'm really crossing my fingers though.
Victoria Labalme Plus
Also Dan, One more question - do you know if fancybox.net vimeo implementation was iPad/iPhone compatible? I can check myself if you have a url.
Super Mega Action Plus Plus
Good news everyone! The latest update to Safari fixes the Flash Player overlapping issue. Now just have to persuade everyone to upgrade... ;)
Brent Mitchell
The byline and portrait options seem to be ignored when setting to false. e.g.
vimeo.com/api/oembed.json?url=http%3A//vimeo.com/{videoID}&portrait=0&byline=0&color=ffffff&width=550
This used to work. Am I missing something?
Brad Dougherty Staff
Indeed they are. I'll check into that tomorrow.
Brad Dougherty Staff
Should be fixed now.
Brent Mitchell
Thx!
Lib Tech Plus
Vaving problems embedding the new code into wordpress, does not show up at all.
Ryan Hargrave
Lib Tech,
are you referring to the oembed code or the embed code that you place to make a video show up (the iframe code)
I would assume the later. WP will auto-embed your vimeo links and auto place the videos in your posts if you just past the vimeo link. But you get the default parameters.
If you are copy/pasting the embed code (iframe) then you will need to install the iframe plugin for worpress. I believe this one will do it:
wordpress.org/extend/plugins/tsl-iframe-unfilter/
WP be default will strip out iframe tags from the visual editor. this plugin over-writes that.
Stovall Weems Ministries Plus
I'm having a problem with the oEmbed library embedding the wrong content.
stovallweems.tv/watch.php
If you look at the iframe embedded, the src attribute has the correct video.
player.vimeo.com/video/15190677
However, within the body of the iframe, the _wrong_ video is being embedded.
I'm not sure why this is the case. Any help troubleshooting/getting the correct video to embed would be appreciated.
Thanks,
-Alex
Brad Dougherty Staff
They look the same to me. Can you try clearing your browser's cache?
Stovall Weems Ministries Plus
Egad! You're right. It works now.
Interesting. How is the content cached when it's getting the embed code from Vimeo?
Brad Dougherty Staff
I have no idea how a different video would have ended up being cached, but the contents of the iframe will be cached by your browser.
corysimmons
If this is about the code. It doesn't play in Vista/Safari.
Brad Dougherty Staff
Can you give us any more information? Where is the video embedded/what video is it/etc?
corysimmons
jsbin.com/umoxo3
Provides no controls on hover, doesn't auto-play, dimmed out.
Just... dead.
corysimmons
Again, this is Vista + Safari.
Tauranga House of Prayer
Hey, just wondering why Vimeo switched to the iframe option when it has been defunct for many years now? It won't validate in the "strict" doctype. Do you have links to documentation of how the oEmbed is going to work from vimeo's perspective? And will it validate in "strict"?
Brad Dougherty Staff
oEmbed by default returns the new iframe code. If you'd like to get the old one, you can pass iframe=false as a parameter.
So by default, no it won't validate in strict.
Nudnik
I don't know if it's just me or not (could be I suppose) but for some reason, I can't copy the embed code on my MacBook via Safari. It works just fine with Firefox but not Safari.
Brad Dougherty Staff
Sorry about that, should be fixed.
Paul Joy Plus
Did this z-index problem in safari ever get resolved? I've recently updated all of my embedded videos so that my site is ios friendly and just discovered that the vimeo iFrames cover all the other content including navigation fly-outs and fancybox pop-ups.
Any help appreciated.
pauljoy.com
Super Mega Action Plus Plus
Good news everyone! The latest update to Safari fixes the Flash Player overlapping issue. Now just have to persuade everyone to upgrade... ;)
Jake Dowie
I want to create a page with some navigation which shows the vimeo video onclick.
When I place the iframe embed code within a hidden area on a page of a client's website it generates a javascript error and won't play when it's shown.
Chris St.Croix Plus
Is there a way to make the embedded Vimeo clip (watched on another site) play in HD automatically when it comes up? Right now the first time, it starts in SD and you have to click the HD button. I didn't see that option in the embed customization section.
Deyson Ortiz Plus
Here is a recommendation I received from Developer Justin from Hyrbid themes in regards to iframe:
"Drop-down menus are a common site element, and it's the Vimeo feature that's changing how things would normally work. We can't control how something is displayed if using an iframe, which I would argue is the incorrect element to use. should be the element used on your site.
"
John Prolly Plus
Is there a way to fix the new Vimeo player code to work in an RSS feed?
Matthew Terentjev
I am not sure... but it looks like new embed code doesn't work in PowerPoint 2010 - Insert - Insert Video from the WebSite - paste new embed code -
"PowerPoint can't insert video from this embed code. Verify the embed code is correct and try again.
The old one works perfectly!
Could I make always old embed code to appear for my videos for my watchers...
Paul Felmer
Hello Brad
previously used these lines in my code
bitcast.vimeo.com/vimeo/swf/moogaloop.swf?clip_id=18210453&width=450&height=330&fullscreen=0
ACTIVITY IN BROWSER SAYS PATH NOT FOUND
changed by
Security.allowDomain("vimeo.com/");
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("vimeo.com/moogaloop.swf?clip_id=" + clip_id + "&width=" + w + "&height=" + h + '&fullscreen=0');
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete,false,0,true);
loader.load(request);
}
While the url now, but do not see the video in my Flash:
motiv.cl/felmer/
regard!
Brad Dougherty Staff
Hi Paul,
We have not supported that bit cast url for a while now. See vimeo.com/api/docs/moogaloop-as
Maria Chapéu
I have a problem with what froogaloop on localhost it works fine, but when sending to the server the player crashes.
What can I do?