Welcome Guest, Not a member yet? Register   Sign In
oEmbed-Library
#1

[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???
#2

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

[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
#4

[eluser]abada[/eluser]
thanks Smile




Theme © iAndrew 2016 - Forum software by © MyBB