[wp-trac] [WordPress Trac] #11556: Add support for embedding YouTu.be URLs

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 14 23:34:55 UTC 2010


#11556: Add support for embedding YouTu.be URLs
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:                                    
     Type:  enhancement   |      Status:  new                               
 Priority:  normal        |   Milestone:  3.0                               
Component:  General       |     Version:  2.9                               
 Severity:  normal        |    Keywords:  has-patch tested reporter-feedback
--------------------------+-------------------------------------------------

Comment(by Viper007Bond):

 Replying to [comment:3 westi]:
 > Could we not just register youtu.be as another oembed provided and rely
 on the 302 following of the HTTP handlers.
 >
 > That way we don't need any youtu.be specific code in here and if they
 change the url format of any of the providers in future and offer 302
 redirects we would follow those too?

 No, because their oEmbed provider doesn't understand their shortened URLs.

 Example short URL: http://youtu.be/nTDNLUzjkpg

 Their provider returns a 401 for that URL:
 http://www.youtube.com/oembed?format=xml&url=http%3A%2F%2Fyoutu.be%2FnTDNLUzjkpg

 Ideally their oEmbed provider should support their short URLs. I didn't
 think that'd be possible, however I recently saw one of the YouTube people
 post to the oEmbed mailing list, so I'll see if I can get them to support
 their short URLs so we can just map them directly to their oEmbed
 provider.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11556#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list