<?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>Viddler Developers</title>
	<atom:link href="http://developers.viddler.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://developers.viddler.com</link>
	<description>Testing tomorrow's video platform, today.</description>
	<lastBuildDate>Wed, 09 Sep 2009 04:27:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to: Use the Viddler API with CodeIgniter</title>
		<link>http://developers.viddler.com/2009/08/04/codeigniter-phpviddler/</link>
		<comments>http://developers.viddler.com/2009/08/04/codeigniter-phpviddler/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 01:26:56 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[phpViddler]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpviddleruploadify]]></category>
		<category><![CDATA[uploadify]]></category>
		<category><![CDATA[viddler api]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=422</guid>
		<description><![CDATA[The Viddler team is using CodeIgniter more and more for our internal PHP projects. Obviously we need to use CodeIgniter with the Viddler API quite a bit so we figured we&#8217;d share with you how easy it is to include PHPViddler, the open source PHP API wrapper class for the Viddler API, in your CodeIgniter [...]]]></description>
			<content:encoded><![CDATA[<p>The Viddler team is using <a href="http://codeigniter.com/">CodeIgniter</a> more and more for our internal PHP projects. Obviously we need to use CodeIgniter with <a href="http://developers.viddler.com/documentation/">the Viddler API</a> quite a bit so we figured we&#8217;d share with you how easy it is to include <a href="http://developers.viddler.com/projects/api-wrappers/phpviddler/">PHPViddler</a>, the open source PHP API wrapper class for the Viddler API, in your CodeIgniter application.</p>
<p>Here are the steps to follow:</p>
<ol>
<li>Download the latest copy of PHPViddler.</li>
<li>Extract PHPViddler into system/libraries/phpviddler/ in your CodeIgniter installation.</li>
<li>Load the PHPViddler library (as needed) like this:

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Load PHP Viddler and setup</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'phpviddler/php5viddler'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$viddler</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">php5viddler</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">apiKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'your_api_key_here'</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Use $viddler->function_name() after that.</li>
</ol>
<p>I&#8217;ve just set up a local CodeIgniter installation and had multi-file uploading working within about 30 minutes using PHP Viddler with <a href="http://developers.viddler.com/projects/api-wrappers/phpviddler/uploadify/">PHPViddlerUploadify</a> (an extension of both PHPViddler and the JavaScript framework <a href="http://jquery.com/">jQuery</a>) for easy file uploading.</p>
<p>We hope that you enjoy using <a href="http://developers.viddler.com/projects/api-wrappers/phpviddler/">PHPViddler</a> with <a href="http://codeigniter.com/">CodeIgniter</a> as much as we do.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/08/04/codeigniter-phpviddler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our Recorder is now a bit smarter</title>
		<link>http://developers.viddler.com/2009/07/21/our-recorder-is-now-a-bit-smarter/</link>
		<comments>http://developers.viddler.com/2009/07/21/our-recorder-is-now-a-bit-smarter/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:10:31 +0000</pubDate>
		<dc:creator>Lukasz Hankus</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[adobe flash]]></category>
		<category><![CDATA[connection problem]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[recorder]]></category>
		<category><![CDATA[video recording]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=415</guid>
		<description><![CDATA[Just recently we added a small tweak to the Recorder, to make it try connecting to our recording facilities over more than just one port and protocol pair. 
As of next push, those of you, who are hopelessly firewalled, will be able to record not only using the default port 1935, but also over ports [...]]]></description>
			<content:encoded><![CDATA[<p>Just recently we added a small tweak to <a href="http://developers.viddler.com/documentation/articles/howto-record/">the Recorder</a>, to make it try connecting to our recording facilities over more than just one port and protocol pair. </p>
<p>As of next push, those of you, who are hopelessly firewalled, will be able to record not only using the default port 1935, but also over ports 80 or 443, too. No user action is needed, Recorder does the magic automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/07/21/our-recorder-is-now-a-bit-smarter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Viddler to your Drupal powered site</title>
		<link>http://developers.viddler.com/2009/05/12/viddler-drupal-module/</link>
		<comments>http://developers.viddler.com/2009/05/12/viddler-drupal-module/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:29:17 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[3rd-party projects]]></category>
		<category><![CDATA[Announcements]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[omnitechpro]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=357</guid>
		<description><![CDATA[Drupal is a robust content management platform built to make it easy to power everything from a blog to a full community Web site. &#8211; And it just got a little bit easier to use your Viddler videos on your Drupal-powered Web sites.
The Viddler Drupal module, which we&#8217;ve just added to our Project Directory, makes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org/">Drupal</a> is a robust content management platform built to make it easy to power everything from a blog to a full community Web site. &#8211; And it just got a little bit easier to use your Viddler videos on your Drupal-powered Web sites.</p>
<p><a href="http://developers.viddler.com/projects/plugins/viddler-drupal-module/">The Viddler Drupal module</a>, which we&#8217;ve just added to <a href="http://developers.viddler.com/projects/">our Project Directory</a>, makes it easy to record video with your Web cam, upload videos directly to Viddler, and use your video&#8217;s metadata throughout the site.</p>
<p>Thanks to the talented people at <a href="http://omnitechpro.com/">OmniTechPro</a> for getting this project off the ground. The module is open source, so feel free to use it and make it better!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/05/12/viddler-drupal-module/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Viddler Wordpress plugin, now official</title>
		<link>http://developers.viddler.com/2009/02/11/wpviddler-official/</link>
		<comments>http://developers.viddler.com/2009/02/11/wpviddler-official/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 13:11:40 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin directory]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=326</guid>
		<description><![CDATA[The Viddler Wordpress plugin, or as some like to call it the video commenting plugin, has now been added to the official Wordpress.org plugins directory.  We feel all official about it.
What does this mean for you? It means that now you&#8217;re able to install the plugin from within your blog&#8217;s Wordpress admin. It also means [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developers.viddler.com/projects/plugins/wpviddler/">The Viddler Wordpress plugin</a>, or as some like to call it <a href="http://developers.viddler.com/projects/plugins/wpviddler/">the video commenting plugin</a>, has now been <a href="http://wordpress.org/extend/plugins/the-viddler-wordpress-plugin/">added to the official Wordpress.org plugins directory</a>.  We feel all official about it.</p>
<p>What does this mean for you? It means that now you&#8217;re able to install the plugin from within your blog&#8217;s Wordpress admin. It also means that anytime we release an update to the plugin, like we just have with version 1.2.3 which is now available, you will be notified of this update from within the plugin panel in Wordpress.</p>
<p><a href="http://wordpress.org/">Wordpress 2.7</a> has made it as easy as ever to find, install, and update plugins that will enhance your blog&#8217;s features. We hope the Viddler Wordpress plugin is one of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/02/11/wpviddler-official/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New article on encoding video for Viddler</title>
		<link>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/</link>
		<comments>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:29:13 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=294</guid>
		<description><![CDATA[As we&#8217;re slowly putting together our new developers site we are continously updating the documentation, articles, and projects that are on the site. 
Today we&#8217;ve just launched a new article How to: Encode High Quality Video for Viddler. We&#8217;ve had this article requested from us several times and we&#8217;re happy to finally offer it. Nothing too [...]]]></description>
			<content:encoded><![CDATA[<p>As we&#8217;re slowly putting together <a href="http://developers.viddler.com/">our new developers site</a> we are continously updating the <a href="http://developers.viddler.com/documentation/">documentation</a>, articles, and <a href="http://developers.viddler.com/projects/">projects</a> that are on the site. </p>
<p>Today we&#8217;ve just launched a new article <a href="http://developers.viddler.com/documentation/articles/howto-encode/">How to: Encode High Quality Video for Viddler</a>. We&#8217;ve had this article requested from us several times and we&#8217;re happy to finally offer it. Nothing too special in the article itself, really, no rocket science &#8211; however it is nice to have an easy to read reference on how to get the best out of your Viddler videos.</p>
<p>If you have any questions or would like to have something appended to the article, or would like to request a new article, please feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Live redesigning Viddler&#8217;s Developer site</title>
		<link>http://developers.viddler.com/2008/06/03/developers-live-redesign/</link>
		<comments>http://developers.viddler.com/2008/06/03/developers-live-redesign/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 15:51:57 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[documentations]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=23</guid>
		<description><![CDATA[Watch for falling rocks!  We&#8217;re sort of live updating the Viddler&#8217;s Developer site.
We&#8217;ve got a new template designed by Viddler&#8217;s Lead Designer Andrew Smith which will facilitate our needs not only for the Developer site but also for a few other sub-level domains we&#8217;ll be launching in the next few weeks.  Andrew provided me with [...]]]></description>
			<content:encoded><![CDATA[<p>Watch for falling rocks!  We&#8217;re sort of live updating <a href="http://developers.viddler.com/">the Viddler&#8217;s Developer site</a>.</p>
<p>We&#8217;ve got a new template designed by Viddler&#8217;s Lead Designer Andrew Smith which will facilitate our needs not only for the Developer site but also for a few other sub-level domains we&#8217;ll be launching in the next few weeks.  Andrew provided me with a style guide of sorts and so now I&#8217;m put to the task of getting both Wordpress and MediaWiki, the two applications we use to pull off this site, to bend to my will.</p>
<p>Everything should work ok, but will look a little wonky while I&#8217;m updating. If you have any concerns, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/06/03/developers-live-redesign/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The ViddlerPop! bookmarklet &#8211; beta 0.2</title>
		<link>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/</link>
		<comments>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/#comments</comments>
		<pubDate>Thu, 29 May 2008 10:46:40 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[viddlerpop]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=22</guid>
		<description><![CDATA[The response from the first version of the bookmarklet has been pretty strong. It has now been updated a little, based on the comments we&#8217;ve received, and hopefully you&#8217;ll find it even more useful.
Changes in beta 0.2

Sharing via Twitter now works, even when logged out of Twitter.com.
Window is now resizable.

We still need to fix the [...]]]></description>
			<content:encoded><![CDATA[<p>The response from <a href="http://developers.viddler.com/2008/05/28/viddlerpop-beta01/">the first version</a> of the bookmarklet has been pretty strong. It has now been updated a little, based on the comments we&#8217;ve received, and hopefully you&#8217;ll find it even more useful.</p>
<h3>Changes in beta 0.2</h3>
<ul>
<li>Sharing via Twitter now works, even when logged out of Twitter.com.</li>
<li>Window is now resizable.</li>
</ul>
<p>We still need to fix the Firefox 3 RC1 issue <a href="http://developers.viddler.com/2008/05/28/viddlerpop-beta01/#comment-110">that Evan Sims pointed out</a>, as well as figure out how to make the bookmarklet work on pages where a Viddler video is embedded, and not just on Viddler.com.<br />
Thanks for all of your feedback so far!</p>
<h3>To upgrade or install</h3>
<p>To update your bookmarklet, just delete the old one, and use this new one: <a href="javascript:viddlerPause();w=window.open('http://lab.viddler.com/services/popoutplayer/?url='+encodeURIComponent(location.href),'ViddlerPopOut','width=420,height=500,toolbar=no,location=no,status=no,resizeable=yes,scrollbars=no');(function(){setTimeout('w.focus()',1000);})();">ViddlerPop!</a></p>
<p>As always, if you have any questions, just ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The ViddlerPop! bookmarklet &#8211; beta 0.1</title>
		<link>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/</link>
		<comments>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/#comments</comments>
		<pubDate>Wed, 28 May 2008 10:24:29 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[viddlerpop]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=21</guid>
		<description><![CDATA[I like watching video in Viddler&#8217;s player.  All of my favorite podcasts are now using Viddler including WineLibrary TV, DiggNation, Two Guys on Beer, just to name a few.  But sometimes I don&#8217;t like keeping a browser tab open to watch these longer videos while I&#8217;m doing other things like surfing the Web, writing code, [...]]]></description>
			<content:encoded><![CDATA[<p>I like watching video in Viddler&#8217;s player.  All of my favorite podcasts are now using Viddler including <a href="http://viddler.com/winelibrarytv/">WineLibrary TV</a>, <a href="http://viddler.com/diggnation/">DiggNation</a>, <a href="http://viddler.com/tgob/">Two Guys on Beer</a>, just to name a few.  But sometimes I don&#8217;t like keeping a browser tab open to watch these longer videos while I&#8217;m doing other things like surfing the Web, writing code, or replying to the endless amounts of email I seem to get.</p>
<p>This is where ViddlerPop!, a new bookmarklet we&#8217;re playing with, comes in and saves the day.  Now instead of keeping a browser tab open dedicated to a Viddler video, I can watch this video in its own window.</p>
<p>Here is <a href="http://www.viddler.com/explore/cdevroe/videos/441/">a quick video demonstration</a> of how this first version works.</p>
<p><div id="viddlervideo-29425-15eb971d" class="viddlervideo"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="292" id="viddler_15eb971d"><param name="movie" value="http://www.viddler.com/player/15eb971d/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://www.viddler.com/player/15eb971d/" width="437" height="292" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" name="viddler_15eb971d" ></embed></object></div></p>
<p>Please leave us some feedback to let us know what you think of the bookmarklet, how you&#8217;d like it to improve, and if you find any bugs.  Thanks in advance!</p>
<h3>Installation</h3>
<p>To install <a href="javascript:viddlerPause();w=window.open('http://lab.viddler.com/services/popoutplayer/?url='+encodeURIComponent(location.href),'ViddlerPopOut','width=420,height=500,toolbar=no,location=no,status=no,resizeable=yes,scrollbars=no');(function(){setTimeout('w.focus()',1000);})();">ViddlerPop!</a> just drag the ViddlerPop! link to your browser&#8217;s bookmarks bar &#8211; or, right-click and &#8220;Add to bookmarks&#8221;. I believe in Firefox it is right-click and &#8220;Bookmark this Link&#8221;.</p>
<p>Questions?  Fire away!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Where did the lab go?</title>
		<link>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/</link>
		<comments>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/#comments</comments>
		<pubDate>Fri, 16 May 2008 13:29:36 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=20</guid>
		<description><![CDATA[In an effort to make developing on Viddler&#8217;s platform as easy as possible, we&#8217;ve moved the lab from lab.viddler.com to developers.viddler.com.  Everything should be forwarded now and we&#8217;ll be now setting up shop here.  The wiki is still available, but we&#8217;re going to be adding a whole new interface to our Developers area over the [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to make developing on Viddler&#8217;s platform as easy as possible, we&#8217;ve moved the lab from lab.viddler.com to developers.viddler.com.  Everything should be forwarded now and we&#8217;ll be now setting up shop here.  <a href="http://wiki.developers.viddler.com/">The wiki</a> is still available, but we&#8217;re going to be adding a whole new interface to <a href="http://developers.viddler.com/">our Developers area</a> over the next few weeks.</p>
<p>Please stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Started With phpViddler, Part 3: Recording videos with a webcam</title>
		<link>http://developers.viddler.com/2008/04/22/phpviddler-part-3-recording-videos/</link>
		<comments>http://developers.viddler.com/2008/04/22/phpviddler-part-3-recording-videos/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 09:16:04 +0000</pubDate>
		<dc:creator>Kyle Slattery</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[phpViddler]]></category>
		<category><![CDATA[recording]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://lab.viddler.com/?p=18</guid>
		<description><![CDATA[One of the great aspects of Viddler&#8217;s API is the ability to embed our webcam recorder right into your site.  With only a few lines of code, your users will be able to record video using any camera attached to their computer, and it&#8217;s automatically uploaded to Viddler and encoded.  Let&#8217;s dive right [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great aspects of Viddler&#8217;s API is the ability to embed our webcam recorder right into your site.  With only a few lines of code, your users will be able to record video using any camera attached to their computer, and it&#8217;s automatically uploaded to Viddler and encoded.  Let&#8217;s dive right in!</p>
<p>First off, if you haven&#8217;t checked out <a href="http://lab.viddler.com/2008/04/20/phpviddler-part-1-listing-video/">part one</a> and <a href="http://lab.viddler.com/2008/04/20/getting-started-with-phpviddler-part-2-user-authentication-and-sessions/">part two</a> of the phpViddler series, you&#8217;ll want to do that first, as some of that code will be necessary for recording.<br />
<span id="more-18"></span><br />
As explained on <a href="http://wiki.developers.viddler.com/index.php/Record_With_Webcam_API">the wiki page</a>, there are 2 steps to embedding the video recorder on your site:</p>
<ol>
<li>Get a record_token using either <a href="http://wiki.developers.viddler.com/index.php/Viddler.users.auth">Viddler.users.auth</a> with get_record_token set to &#8220;1&#8243; or <a href="http://wiki.developers.viddler.com/index.php/Viddler.videos.getRecordToken">Viddler.videos.getRecordToken</a>.</li>
<li>Use the returned record_token to embed the recorder on your site.</li>
</ol>
<h3>Getting A Record Token</h3>
<p>In order to embed the video recorder, you&#8217;ll need to pass a &#8220;record token,&#8221; which is a one-time use key that allows the user to record a video.  There are two ways to get the record token, so I&#8217;ll go through both.</p>
<h4>During User Authentication</h4>
<p>When you use the <code>user_authenticate()</code> function (<a href="http://lab.viddler.com/2008/04/20/getting-started-with-phpviddler-part-2-user-authentication-and-sessions/">covered in part 2</a>), you can pass a third parameter to return a record token, which is then returned along with the sessionid:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$sessionResponse</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_authenticate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$recordToken</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sessionResponse</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'auth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'record_token'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>After Authentication</h4>
<p>If you already have a valid sessionID, but you haven&#8217;t yet generated a record token, you can use the <code>video_getrecordtoken()</code> method, which takes a sessionID as a parameter.  Here&#8217;s how you&#8217;d use it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$recordToken</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">video_getrecordtoken</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sessionID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Personally, I prefer grabbing the token during authentication, since it cuts down on the number of API calls I have to make, but it really depends on the situation.</p>
<p><strong>Note:</strong> While sessionIDs expire, as you no doubt learned in part two, record tokens <em>never expire</em> but can only be used once.  So if you generate a record token for the user when they login, you can keep this token until it is used for as long as you&#8217;d like.</p>
<h3>Embedding the Video Recorder</h3>
<p>Now that you have your record token, it&#8217;s time to embed the video recorder.  Thankfully, phpViddler makes it easy again with the <code>video_getRecordEmbed()</code> function.  To use it, just pass it a record token:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">video_getRecordEmbed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recordToken</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And with that, your users are ready to record videos right from your site!</p>
<h4>Knowing When Recording is Finished</h4>
<p>After your user successfully records a video, you&#8217;ll likely want to send them to a new page, or call some other action.  Luckily, the video recorder calls a javascript function, <code>recordDone()</code> when it&#8217;s finished.  To implement this, you&#8217;ll have to add something like the following to your record page:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> recordDone<span style="color: #009900;">&#40;</span>username<span style="color: #339933;">,</span> user_video_number<span style="color: #339933;">,</span> video_id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// Alert the user that recording is finished</span>
  <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Thanks '</span><span style="color: #339933;">;</span> <span style="color: #339933;">+</span> username <span style="color: #339933;">+</span> <span style="color: #3366CC;">', you'</span>ve recorded video #<span style="color: #3366CC;">' + user_video_number + '</span> <span style="color: #000066; font-weight: bold;">with</span> id <span style="color: #3366CC;">' + video_id);
&nbsp;
  // Send user to new page
  top.location('</span>http<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//newpage.com');</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>As you can see, <code>recordDone()</code> receives 3 arguments, which you can use however you&#8217;d like:</p>
<ul>
<li><strong>username</strong>: The user who recorded a video</li>
<li><strong>user_video_number</strong>: The number that appears in the video&#8217;s Viddler URL, e.g. http://www.viddler.com/explore/kyleslat/videos/24/</li>
<li><strong>video_id</strong>: The video&#8217;s unique ID, which can be used to embed the player.</li>
</ul>
<p>So, there you have it, with a few simple lines of code, users are now able to record video directly from your site!  Next up, we&#8217;ll be tackling uploading videos, so stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/04/22/phpviddler-part-3-recording-videos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
