CodeIgniter Forums
oEmbed-Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: oEmbed-Library (/showthread.php?tid=24498)



oEmbed-Library - El Forum - 11-11-2009

[eluser]KuLi[/eluser]
Hello,

This is my first contribution to the CodeIgniter community.

At First my English is very bad and it gives no Code Documentation Wink But this is a Simple Lib.


If you are German you can look here for a Wiki

This is a Lib. for calling the Api Method Oembed for Videos

You can get Videos from:
* http://www.youtube.com
* http://www.viddler.com
* http://www.qik.com
* http://www.revision3.com
* http://www.hulu.com
* http://www.vimeo.com/



Response parameters
* type
* version
* html
* width
* height


Optional Response parameters
* title
* author_name
* author_url
* provider_name
* provider_url
* cache_age
* thumbnail_url
* thumbnail_width
* thumbnail_height
* video_id



Usage:

Code:
$this->load->library('oembed');
$data['video'] = $this->oembed->call('Youtube', 'http://www.youtube.com/watch?v=nKu60YKqsvs&feature=rec-LGOUT-exp_stronger_r2-HM');
echo $data['video']->html;

If you want to Cache Response you need KhCache library.

Code:
$params = array('type' => 'json', 'cache' => TRUE);
$this->load->library('oembed', $params);


Download

Any Questions???


oEmbed-Library - El Forum - 11-11-2009

[eluser]sharpe[/eluser]
Download link not working


oEmbed-Library - El Forum - 11-11-2009

[eluser]Benedikt[/eluser]
If you go via the wiki you can easily find out that it was updated recently.

The Link is http://wiki.codeigniter.ch/attachments/5/Oembed.php until the next update Smile

I recommend going via http://wiki.codeigniter.ch/wiki/ci-wiki/OEmbed-Library


oEmbed-Library - El Forum - 02-09-2010

[eluser]abada[/eluser]
thanks Smile