Fabrik

Fabrik Plus

Hi,

We are using the Vimeo oembed API to embed a video.

The video url is vimeo.com/13183074

On the Vimeo page the video displays at 640px. However, when we set the maxwidth parameter of the oembed call to 600 we get back a width of 512. This appears to be the max width available via the oembed feed (see vimeo.com/api/oembed.xml?url=http://vimeo.com/13183074&maxwidth=600)

Why is this the case?
Secondly, is there a max width for non hd videos that can be requested via oembed?

Link: vimeo.com/api/oembed.xml?url=http://vimeo.com/13183074&maxwidth=600

Brad Dougherty

Brad Dougherty Staff

It's coming back as 512 because that's the width of the video. If you use width instead of maxwidth, you'll get what you want. If you use width/height, it will always use exactly those values.

Fabrik

Fabrik Plus

Hi Brad,

Thanks for your reply.

This presents a problem for us since we are using an external service (embed.ly) to construct the request and width/height are not part of the oembed spec.

I'll have a word with the guys at embed.ly to see what they suggest as the current jQuery plugin they provide does not support passing additional parameters.

Brad Dougherty

Brad Dougherty Staff

As a workaround, you can change the width and height params of the returned iframe code.

This conversation is missing your voice. Please join Vimeo or log in.