[wp-hackers] Strange oEmbed behavior

Jordi Canals jordi at jcanals.cat
Sat Jan 23 18:53:20 UTC 2010


Hi all,

I have an strange behavior embedding files on my theme. I did the same
checks with videos from YouTube and Vimeo and some of them fails only with
YouTube videos (With Vimeo no problems).
This is when you just paste the video page URL to the post or page content:

- Setting the video embedding width to 560, 580, 610 or 620 pixels width the
videos embbed with no problems and the pasted URL. The same if the media
embed width is empty.
- Setting the video embedding width to 590 or 600 pixels fails and only the
URL is shown on the post as plain text.

My theme does nothing with the videos, and it works with no problems with
Vimeo videos.
Browsing the embedding classes (WP_oEmbed) I did not found anything made
different as them use oEmbed standard calls and addresses as stated at
http://www.oembed.com/ and in the YouTube API blog
http://apiblog.youtube.com/2009/10/oembed-support.html

Do you thing this can be a YouTube oEmbed bug or a bug withing WordPress?

-- 
Jordi Canals
http://alkivia.org - http://jcanals.cat


More information about the wp-hackers mailing list