drawcode / jquery-oembed

Automatically exported from code.google.com/p/jquery-oembed
0 stars 0 forks source link

YouTube embeds fail frequently #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Vimeo and Flickr embeds are working perfectly, but standard YouTube embeds 
using exactly the 
same syntax (and on the same page) are failing most of the time (the link is 
simply not replaced). 

To reproduce:

1) Edit flickr-example.html to use a Vimeo URL instead - it works perfectly
2) Edit it again to use any YouTube URL - it fails

The problem seems intermittent - the same embed may start working again 
tomorrow. Ah... it 
appears the issue is the fallback on http://oohembed.com/oohembed/ -- a Google 
App Engine app 
that's currently over quota. 

Dependency on this 3rd party app may be too delicate. Recommended workarounds?

Original issue reported on code.google.com by scotfhac...@gmail.com on 1 Jun 2010 at 10:46

GoogleCodeExporter commented 9 years ago
Ah! I found that replacing the URL on line 149 with embedly's API endpoint 
address fixes it nicely. Not sure 
whether this is an ideal solution, but gets me over the hump for now.

this.oEmbedUrl = (oEmbedUrl != null) ? oEmbedUrl : 
"http://api.embed.ly/v1/api/oembed?";

Original comment by scotfhac...@gmail.com on 1 Jun 2010 at 10:49

GoogleCodeExporter commented 9 years ago
that works! thanks!

Original comment by karlis.b...@gmail.com on 15 Aug 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Navite support for embed.ly has been included in version 1.1 of the 
jquery-oembed plugin.

You can see how it works in the example file "embedly-default-provider.html".

Original comment by rchamo...@gmail.com on 1 Apr 2011 at 6:10