Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.

Commit

Permalink
added timetoast, youku, snotr; checked more OGP sites and added to list
Browse files Browse the repository at this point in the history
  • Loading branch information
starfishmod committed Apr 16, 2012
1 parent 9a4932d commit 7c883cb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
17 changes: 16 additions & 1 deletion README.md
Expand Up @@ -104,6 +104,13 @@ Current 3rd party sources include:
http://www.aniboom.com/animation-video/187178/The-Flower/ http://www.aniboom.com/animation-video/187178/The-Flower/
* Comedy Central - OGP * Comedy Central - OGP
http://www.comedycentral.com/video-clips/qdybr3/cc-studios-tiny-hands-tiny-hands--glove-shopping http://www.comedycentral.com/video-clips/qdybr3/cc-studios-tiny-hands-tiny-hands--glove-shopping
* snotr - embedded
http://www.snotr.com/video/9125/Fun_at_work
* zapiks - OGP
http://www.zapiks.com/teva-slopestyle-2012.html
* youku - embedded
http://v.youku.com/v_show/id_XMzgxNzY3NTU2.html





####Audio ####Audio
Expand All @@ -125,6 +132,7 @@ Current 3rd party sources include:
http://audioboo.fm/boos/710079-geofencing-and-the-future http://audioboo.fm/boos/710079-geofencing-and-the-future
* Spotify - OGP YQL * Spotify - OGP YQL
http://open.spotify.com/album/1YwzJz7CrV9fd9Qeb6oo1d http://open.spotify.com/album/1YwzJz7CrV9fd9Qeb6oo1d



#### Photo #### Photo


Expand Down Expand Up @@ -176,6 +184,8 @@ Current 3rd party sources include:
http://www.glogster.com/lacocom/glog/g-6m025lt047et8od1f3iona0 http://www.glogster.com/lacocom/glog/g-6m025lt047et8od1f3iona0
* chart.ly - embedded * chart.ly - embedded
http://chart.ly/v3eemh9 http://chart.ly/v3eemh9
* twitrpix - OGP
http://twitrpix.com/l39c


####Rich ####Rich


Expand Down Expand Up @@ -260,6 +270,12 @@ Current 3rd party sources include:
https://banters.com/p/55840 https://banters.com/p/55840
* bigthink - OGP * bigthink - OGP
http://bigthink.com/series/43542 http://bigthink.com/series/43542
* wirewax - OGP
http://www.wirewax.com/5001608
* whosay - OGP
http://www.whosay.com/EvaLongoria/photos/159328
* timetoast - embedded
http://www.timetoast.com/timelines/225819


--- ---


Expand All @@ -279,5 +295,4 @@ Current 3rd party sources include:
* http://robohash.org/ * http://robohash.org/





Plus a lot more :) Feel free to submit Plus a lot more :) Feel free to submit
19 changes: 15 additions & 4 deletions jquery.oembed.js
Expand Up @@ -152,8 +152,10 @@
var flashvars = embedProvider.embedtag.flashvars || ''; var flashvars = embedProvider.embedtag.flashvars || '';
var tag = embedProvider.embedtag.tag || 'embed'; var tag = embedProvider.embedtag.tag || 'embed';
var width = embedProvider.embedtag.width || 'auto'; var width = embedProvider.embedtag.width || 'auto';
var nocache = embedProvider.embedtag.nocache || 0;
var height = embedProvider.embedtag.height || 'auto'; var height = embedProvider.embedtag.height || 'auto';
var src =externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint)+'&jqoemcache='+rand(5); var src =externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint);
if(!nocache) src += '&jqoemcache='+rand(5);
if (embedProvider.apikey) src = src.replace('_APIKEY_', settings.apikeys[embedProvider.name]); if (embedProvider.apikey) src = src.replace('_APIKEY_', settings.apikeys[embedProvider.name]);




Expand Down Expand Up @@ -359,7 +361,12 @@
{templateRegex:/.*animation-video\/(\d+).*/ , embedtag : {width:594,height: 334}}), {templateRegex:/.*animation-video\/(\d+).*/ , embedtag : {width:594,height: 334}}),


new $.fn.oembed.OEmbedProvider("vzaar", "video", ["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?", new $.fn.oembed.OEmbedProvider("vzaar", "video", ["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?",
{templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:576,height: 324 }}), {templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:576,height: 324 }}),
new $.fn.oembed.OEmbedProvider("snotr", "video", ["snotr\\.com/video/.+"],"http://www.snotr.com/embed/$1",
{templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:400,height: 330, nocache:1 }}),

new $.fn.oembed.OEmbedProvider("youku", "video", ["v.youku.com/v_show/id_.+"],"http://player.youku.com/player.php/sid/$1/v.swf",
{templateRegex:/.*id_(.+)\.html.*/, embedtag : {width:480,height:400, nocache:1 }}),


new $.fn.oembed.OEmbedProvider("embedr", "video", ["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?", new $.fn.oembed.OEmbedProvider("embedr", "video", ["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?",
{templateRegex:/.*playlist\/([^\/]+).*/, embedtag : {width:425,height: 520}}), {templateRegex:/.*playlist\/([^\/]+).*/, embedtag : {width:425,height: 520}}),
Expand All @@ -369,8 +376,8 @@
new $.fn.oembed.OEmbedProvider("hulu", "video", ["hulu\\.com/watch/.*"], "http://www.hulu.com/api/oembed.json"), new $.fn.oembed.OEmbedProvider("hulu", "video", ["hulu\\.com/watch/.*"], "http://www.hulu.com/api/oembed.json"),
new $.fn.oembed.OEmbedProvider("ustream", "video", ["ustream\\.tv/recorded/.*"], "http://www.ustream.tv/oembed",{useYQL:'json'}), new $.fn.oembed.OEmbedProvider("ustream", "video", ["ustream\\.tv/recorded/.*"], "http://www.ustream.tv/oembed",{useYQL:'json'}),
new $.fn.oembed.OEmbedProvider("vodpod", "video", ["vodpod.com/watch/.*"], "http://vodpod.com/oembed.js",{useYQL:'json'}), new $.fn.oembed.OEmbedProvider("vodpod", "video", ["vodpod.com/watch/.*"], "http://vodpod.com/oembed.js",{useYQL:'json'}),
new $.fn.oembed.OEmbedProvider("vimeo", "video", ["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/www\.vimeo\.com\/.*", "http:\/\/vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/vimeo\.com\/.*"], "http://vimeo.com/api/oembed.json"), new $.fn.oembed.OEmbedProvider("vimeo", "video", ["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/www\.vimeo\.com\/.*", "http:\/\/vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/vimeo\.com\/.*"], "http://vimeo.com/api/oembed.json"),
new $.fn.oembed.OEmbedProvider("dailymotion", "video", ["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'), new $.fn.oembed.OEmbedProvider("dailymotion", "video", ["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'),
new $.fn.oembed.OEmbedProvider("5min", "video", ["www\\.5min\\.com/.+"], 'http://api.5min.com/oembed.xml',{useYQL:'xml'}), new $.fn.oembed.OEmbedProvider("5min", "video", ["www\\.5min\\.com/.+"], 'http://api.5min.com/oembed.xml',{useYQL:'xml'}),
new $.fn.oembed.OEmbedProvider("National Film Board of Canada", "video", ["nfb\\.ca/film/.+"],'http://www.nfb.ca/remote/services/oembed/',{useYQL:'json'}), new $.fn.oembed.OEmbedProvider("National Film Board of Canada", "video", ["nfb\\.ca/film/.+"],'http://www.nfb.ca/remote/services/oembed/',{useYQL:'json'}),
new $.fn.oembed.OEmbedProvider("qik", "video", ["qik\\.com/\\w+"], 'http://qik.com/api/oembed.json',{useYQL:'json'}), new $.fn.oembed.OEmbedProvider("qik", "video", ["qik\\.com/\\w+"], 'http://qik.com/api/oembed.json',{useYQL:'json'}),
Expand Down Expand Up @@ -513,6 +520,10 @@
new $.fn.oembed.OEmbedProvider("linkedin", "rich", ["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true", new $.fn.oembed.OEmbedProvider("linkedin", "rich", ["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",
{templateRegex:/(.*)/ ,embedtag : {tag: 'iframe', width:'368px',height: 'auto'} {templateRegex:/(.*)/ ,embedtag : {tag: 'iframe', width:'368px',height: 'auto'}
}), }),

new $.fn.oembed.OEmbedProvider("timetoast", "rich", ["timetoast.com/timelines/[0-9]+"],"http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines=$1",
{templateRegex:/.*timelines\/([0-9]*)/ ,embedtag : { width:550,height: 400,nocache:1}
}),
new $.fn.oembed.OEmbedProvider("pastebin", "rich", ["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i=$1", new $.fn.oembed.OEmbedProvider("pastebin", "rich", ["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i=$1",
{templateRegex:/.*\/(\S{8}).*/ ,embedtag : {tag: 'iframe', width:'100%',height: 'auto'} {templateRegex:/.*\/(\S{8}).*/ ,embedtag : {tag: 'iframe', width:'100%',height: 'auto'}
}), }),
Expand Down

0 comments on commit 7c883cb

Please sign in to comment.