<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gevork&#039;s Blog &#187; video</title>
	<atom:link href="http://gevork.ru/tags/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://gevork.ru</link>
	<description>YAB of Crazy Akhalkalaki Guy</description>
	<lastBuildDate>Wed, 28 Mar 2012 13:10:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Удобный Показ Видухи и не только  на Codeigniter</title>
		<link>http://gevork.ru/2010/01/30/udobnyj-pokaz-viduxi-i-ne-tolko-na-codeigniter/</link>
		<comments>http://gevork.ru/2010/01/30/udobnyj-pokaz-viduxi-i-ne-tolko-na-codeigniter/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 10:13:01 +0000</pubDate>
		<dc:creator>Gevork</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[5min.com]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[daily motion]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[google video]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[metacafe]]></category>
		<category><![CDATA[qik]]></category>
		<category><![CDATA[twitter status]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[wikipedia]]></category>
		<category><![CDATA[xkdcd comic]]></category>
		<category><![CDATA[yfrog]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://gevork.ru/?p=75</guid>
		<description><![CDATA[Итак у вас встал&#8230; нет не то&#8230; Вопрос встал.. Как показать видео на сайте? Притом давая возможности юзерам добавлять свои видео  в виде линка к видео? Без проблем.. Качаем вот отсюда http://wiki.codeigniter.ch/wiki/ci-wiki/OEmbed-Library Библиотеку OEMBED для codeigniter. ставим ее в папку /application/libraries/ и юзаем так: Либо делаем автолоад библиотеки в /application/config/autoload.php либо в самом коде делаем [...]]]></description>
			<content:encoded><![CDATA[<p>Итак у вас встал&#8230; нет не то&#8230; Вопрос встал.. Как показать видео на сайте? Притом давая возможности юзерам добавлять свои видео  в виде линка к видео? Без проблем..</p>
<p>Качаем вот отсюда</p>
<p>http://wiki.codeigniter.ch/wiki/ci-wiki/OEmbed-Library</p>
<p>Библиотеку OEMBED для codeigniter.</p>
<p><span id="more-75"></span></p>
<p>ставим ее в папку /application/libraries/</p>
<p>и юзаем так: Либо делаем автолоад библиотеки в</p>
<p>/application/config/autoload.php</p>
<p>либо в самом коде делаем так</p>
<pre><code><span>1</span> <span>$this</span>-&gt;load-&gt;library(<span><span>'</span><span>oembed</span><span>'</span></span>);

а там 

</code>
<pre><code><span>1</span> <span>$params</span> = array(<span><span>'</span><span>type</span><span>'</span></span> =&gt; <span><span>'</span><span>xml</span><span>'</span></span>, <span><span>'</span><span>cache</span><span>'</span></span> =&gt; <span>TRUE</span>);
<span>2</span> <span>$this</span>-&gt;load-&gt;library(<span><span>'</span><span>oembed</span><span>'</span></span>, <span>$params</span>);

Имейте ввиду что не все провайдера дают возможность параметров. 

потом можно инфо про видеофайле узнать таким способом

</code>
<pre><code><span>1</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>vimeo</span><span>'</span></span>, <span><span>'</span><span>http://vimeo.com/6972240</span><span>'</span></span>);
<span>2</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>hulu</span><span>'</span></span>, <span><span>'</span><span>http://www.hulu.com/watch/105905/the-daily-show-with-jon-stewart-recap-week-of-oct-26-2009</span><span>'</span></span>);
<span>3</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>revision3</span><span>'</span></span>, <span><span>'</span><span>http://revision3.com/appjudgment/an_gvoice</span><span>'</span></span>);
<span>4</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>qik</span><span>'</span></span>, <span><span>'</span><span>http://qik.com/video/3420556</span><span>'</span></span>);
<span>5</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>viddler</span><span>'</span></span>, <span><span>'</span><span>http://www.viddler.com/explore/BTTradespace/videos/271/</span><span>'</span></span>);<span> </span></code>
<pre>
<pre><code><span>6</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>youtube</span><span>'</span></span>, <span><span>'</span><span>http://www.youtube.com/watch?v=nKu60YKqsvs&amp;feature=rec-LGOUT-exp_stronger_r2-HM</span><span>'</span></span>);</code></pre>
</pre>
</pre>
<p>если вы ленивый кот как я просто юзайте  вид oohembed</p>
<pre>
<pre><code><span>6</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>youtube</span><span>'</span></span>, <span><span>'</span><span>http://www.youtube.com/watch?v=nKu60YKqsvs&amp;feature=rec-LGOUT-exp_stronger_r2-HM</span><span>'</span></span>);</code></pre>
</pre>
<p>Линк может быть любым из следующих сервисов.</p>
<p>Форматы линков найдете на <a href="http://oohembed.com/" target="_blank">http://oohembed.com/</a></p>
<ol>
<li style="margin-bottom: 1.5em;"><strong>5min.com</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://*.5min.com/Video/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.5min.com/Video/Chocolate-Marquise-Recipe-89007978" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.5min.com/Video/Chocolate-Marquise-Recipe-89007978</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Amazon Product Image</strong>
<ul style="display: none;">
<li>Product images (and author_name for books) for Amazon products. Will soon honour maxwidth/maxheight</li>
<li><em>URL scheme:</em> <code>http://*.amazon.(com|co.uk|de|ca|jp)/*/(gp/product|o/ASIN|obidos/ASIN|dp)/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.amazon.com/Myths-Innovation-Scott-Berkun/dp/0596527055" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.amazon.com/Myths-Innovation-Scott-Berkun/dp/0596527055</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>blip.tv</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.blip.tv/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//pycon.blip.tv/file/2058801/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//pycon.blip.tv/file/2058801/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>CollegeHumor Video</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://*.collegehumor.com/video:*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.collegehumor.com/video%3A1772239" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.collegehumor.com/video%3A1772239</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Daily Show with Jon Stewart</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://*.thedailyshow.com/video/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.thedailyshow.com/video/index.jhtml%3FvideoId%3D210855%26title%3DCNN%2527s-Magic-Wall-Conspiracy-Thriller" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.thedailyshow.com/video/index.jhtml%3FvideoId%3D210855%26title%3DCNN%2527s-Magic-Wall-Conspiracy-Thriller</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Dailymotion</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.dailymotion.com/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.dailymotion.com/video/x5ioet_phoenix-mars-lander_tech" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.dailymotion.com/video/x5ioet_phoenix-mars-lander_tech</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Flickr Photos</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.flickr.com/photos/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.flickr.com/photos/fuffer2005/2435339994/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.flickr.com/photos/fuffer2005/2435339994/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Funny or Die Video</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://*.funnyordie.com/videos/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.funnyordie.com/videos/eae26bb96d" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.funnyordie.com/videos/eae26bb96d</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Google Video</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://video.google.com/videoplay?*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//video.google.com/videoplay%3Fdocid%3D8372603330420559198" target="_blank">http://oohembed.com/oohembed/?url=http%3A//video.google.com/videoplay%3Fdocid%3D8372603330420559198</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Hulu</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://www.hulu.com/watch/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.hulu.com/watch/20807/late-night-with-conan" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.hulu.com/watch/20807/late-night-with-conan</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>LiveJournal UserPic</strong>
<ul style="display: none;">
<li>Avatar image for LiveJournal user. Uses http://ljpic.seacrow.com/</li>
<li><em>URL scheme:</em> <code>http://*.livejournal.com/</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//jace.livejournal.com" target="_blank">http://oohembed.com/oohembed/?url=http%3A//jace.livejournal.com</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Metacafe</strong>
<ul style="display: none;">
<li>Provides the flash video embed code</li>
<li><em>URL scheme:</em> <code>http://*.metacafe.com/watch/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.metacafe.com/watch/1350976/funny_call/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.metacafe.com/watch/1350976/funny_call/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>National Film Board of Canada</strong>
<ul style="display: none;">
<li>Provides video embed codes for nfb.ca - the National Film Board of Canada.     This is just a proxy for the original oEmbed compliant service.</li>
<li><em>URL scheme:</em> <code>http://*.nfb.ca/film/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.nfb.ca/film/blackfly/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.nfb.ca/film/blackfly/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Phodroid Photos</strong>
<ul style="display: none;">
<li>Provider for phodroid.com photos.</li>
<li><em>URL scheme:</em> <code>http://*.phodroid.com/*/*/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//phodroid.com/09/06/k3q6bd" target="_blank">http://oohembed.com/oohembed/?url=http%3A//phodroid.com/09/06/k3q6bd</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Qik Video</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://qik.com/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//qik.com/video/86776" target="_blank">http://oohembed.com/oohembed/?url=http%3A//qik.com/video/86776</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Revision3</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.revision3.com/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//revision3.com/diggnation/2008-04-17xsanned/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//revision3.com/diggnation/2008-04-17xsanned/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Scribd</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.scribd.com/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.scribd.com/doc/17896323/Indian-Automobile-industryPEST" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.scribd.com/doc/17896323/Indian-Automobile-industryPEST</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong style="cursor: default;">SlideShare</strong>
<ul style="display: none;">
<li>Provides the embed code for slideshow</li>
<li><em>URL scheme:</em> <code>http://*.slideshare.net/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.slideshare.net/igniteportland/how-to-run-a-startup-without-losing-your-mind" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.slideshare.net/igniteportland/how-to-run-a-startup-without-losing-your-mind</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong style="cursor: default;">TwitPic</strong>
<ul style="display: none;">
<li>Photo and thumbnail for TwitPic.com photos.</li>
<li><em>URL scheme:</em> <code>http://*.twitpic.com/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.twitpic.com/1pz6z" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.twitpic.com/1pz6z</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong style="cursor: default;">Twitter Status</strong>
<ul style="display: none;">
<li>Provides info on a particular tweet as a link type oEmbed response</li>
<li><em>URL scheme:</em> <code>http://twitter.com/*/statuses/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//twitter.com/mai_co_jp/statuses/822499364" target="_blank">http://oohembed.com/oohembed/?url=http%3A//twitter.com/mai_co_jp/statuses/822499364</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Viddler Video</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://*.viddler.com/explore/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.viddler.com/explore/engadget/videos/14/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.viddler.com/explore/engadget/videos/14/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Vimeo</strong>
<ul style="display: none;">
<li>Just a proxy for the original oEmbed compliant service</li>
<li><em>URL scheme:</em> <code>http://www.vimeo.com/* and http://www.vimeo.com/groups/*/videos/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//www.vimeo.com/1211060" target="_blank">http://oohembed.com/oohembed/?url=http%3A//www.vimeo.com/1211060</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Wikipedia</strong>
<ul style="display: none;">
<li>Returns lead content from a Wikipedia page as 'html' attribute of link type oEmbed response</li>
<li><em>URL scheme:</em> <code>http://*.wikipedia.org/wiki/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//en.wikipedia.org/wiki/Life_on_Mars_%28TV_series%29" target="_blank">http://oohembed.com/oohembed/?url=http%3A//en.wikipedia.org/wiki/Life_on_Mars_%28TV_series%29</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>WordPress.com</strong>
<ul style="display: none;">
<li>Returns lead content from a WordPress.com blog post page as 'html' attribute of link type oEmbed response</li>
<li><em>URL scheme:</em> <code>http://*.wordpress.com/yyyy/mm/dd/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//martinpitt.wordpress.com/2008/05/07/my-computer-discovered-playing-games/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//martinpitt.wordpress.com/2008/05/07/my-computer-discovered-playing-games/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>XKCD Comic</strong>
<ul style="display: none;">
<li>Provides the comic image link for an xkcd.com comic page</li>
<li><em>URL scheme:</em> <code>http://*.xkcd.com/*/</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//xkcd.com/310/" target="_blank">http://oohembed.com/oohembed/?url=http%3A//xkcd.com/310/</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Yfrog photo</strong>
<ul style="display: none;">
<li>Photo and thumbnail for yfrog.com photos.          Uses API described here - http://code.google.com/p/imageshackapi/wiki/YFROGurls</li>
<li><em>URL scheme:</em> <code>http://yfrog.(com|ru|com.tr|it|fr|co.il|co.uk|com.pl|pl|eu|us)/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//yfrog.com/0wgvcpj" target="_blank">http://oohembed.com/oohembed/?url=http%3A//yfrog.com/0wgvcpj</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong style="cursor: default;">Yfrog video</strong>
<ul style="display: none;">
<li>Provides the Yfrog video embed code.</li>
<li><em>URL scheme:</em> <code>http://yfrog.(com|ru|com.tr|it|fr|co.il|co.uk|com.pl|pl|eu|us)/*</code></li>
<li><em>Example:</em> <code> <a href="http://oohembed.com/oohembed/?url=http%3A//yfrog.us/0bdrwz" target="_blank">http://oohembed.com/oohembed/?url=http%3A//yfrog.us/0bdrwz</a></code></li>
</ul>
</li>
<li style="margin-bottom: 1.5em;"><strong>Youtube</strong></li>
</ol>
<p>Как видите в списке есть не только видеосервисы. Так что дерзайте. Если вы не виагру рекламируете, то задавайте вопросы в коментах. Отвечу...</pre>
</pre>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 694px; width: 1px; height: 1px;">
<pre>
<pre>
<pre><code><span>6</span> <span>$this</span>-&gt;oembed-&gt;call(<span><span>'</span><span>youtube</span><span>'</span></span>, <span><span>'</span><span>http://www.youtube.com/watch?v=nKu60YKqsvs&amp;feature=rec-LGOUT-exp_stronger_r2-HM</span><span>'</span></span>);</code></pre>
</pre>
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://gevork.ru/2010/01/30/udobnyj-pokaz-viduxi-i-ne-tolko-na-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

