<?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>webr3.org &#187; flex</title>
	<atom:link href="http://webr3.org/blog/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://webr3.org/blog</link>
	<description>brain&#039;s on fire!</description>
	<lastBuildDate>Tue, 19 Jul 2011 15:38:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Auto YouTube &quot;Best Version&quot; Selection with AS3 &amp; Flex</title>
		<link>http://webr3.org/blog/video/auto-youtube-best-version-selection-with-as3-flex/</link>
		<comments>http://webr3.org/blog/video/auto-youtube-best-version-selection-with-as3-flex/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:02:15 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Entertainment/Culture]]></category>
		<category><![CDATA[High Definition]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://webr3.org/blog/?p=88</guid>
		<description><![CDATA[
Here's one from my library, made it a few months ago to auto get the best version of a video from youtube.
Not too much to write on this one, you pass in the url of a youtube video (the normal web url) - it'll first try and load the HD version, then the HQ version [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-90" title="hd" src="http://webr3.org/blog/wp-content/uploads/2009/07/hd.jpg" alt="hd" width="600" height="250" /></p>
<p>Here's one from my library, made it a few months ago to auto get the best version of a video from youtube.</p>
<p>Not too much to write on this one, you pass in the url of a youtube video (the normal web url) - it'll first try and load the HD version, then the HQ version and finally falls back to the "normal" quality version; the class extends mx.controls.VideoDisplay so you have all the normal methods.</p>
<p>Further, it only does all the detection stuff if the url is a youtube video, if it isn't then it loads the video as per usual, so it can be used as a replacement class for VideoDisplay without any negative effects or strange functionality.</p>
<p>no demo, just the source. Uses Flex 3 and ActionScript 3</p>
<p>hope it's of use to somebody!</p>
<p>Source: <a href="http://webr3.org/experiments/flex-classes/CleverVideo.as">CleverVideo.as</a></p>
<p>Usage:</p>
<pre>video : CleverVideo = new CleverVideo( 'http://www.youtube.com/watch?v=_OBlgSz8sSM' );
addChild( video );</pre>
]]></content:encoded>
			<wfw:commentRss>http://webr3.org/blog/video/auto-youtube-best-version-selection-with-as3-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

