<?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>Long Story Short &#187; flash</title>
	<atom:link href="http://blog.trlong.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trlong.com</link>
	<description>a place for talkin&#039; story</description>
	<lastBuildDate>Tue, 24 Jan 2012 16:15:04 +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>FLASH FIRST?</title>
		<link>http://blog.trlong.com/2010/03/flash-first-2/</link>
		<comments>http://blog.trlong.com/2010/03/flash-first-2/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:23:04 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[HTML5 video]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[Ogg]]></category>
		<category><![CDATA[ogv]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video blog]]></category>
		<category><![CDATA[vlog]]></category>
		<category><![CDATA[vlogging]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=1318</guid>
		<description><![CDATA[Last time we looked at making your HTML5 video degrade to a flash player.  This post will look at how to default to the flash player and fall back to links to the HTML5 video for the smaller segment that &#8230; <a href="http://blog.trlong.com/2010/03/flash-first-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img style="display: inline; margin: 0px 20px 10px 0px;" title="how no background image looks on an iPhone's Safari browser" src="http://blog.trlong.com/wp-content/uploads/2010/03/links-no-image.png" alt="how no background image looks on an iPhone's Safari browser" width="240" height="160" align="left" /> <a title="Is Your Blog iPad Ready?" href="http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/" target="_self">Last time</a> we looked at making your HTML5 video degrade to a flash player.  This post will look at how to default to the flash player and fall back to links to the HTML5 video for the smaller segment that do not have flash enabled on their browser or are viewing on their iPhone or iPad.  All I did was convert my source video to flash (FLV), H.264 (MP4), and Ogg (OGV).  I set up my flash player to run as usual, but instead of giving those without flash a link to get flash, I give them two links.  One will let the Safari and Chrome crowd, including those with hand-held devices, watch the MP4 file in the HTML5 player (or to download it).  The other link lets the Firefox, Opera, and Chrome crowd watch the OGV file <em>in situ</em> (or to download it).<br />
<span id="more-1318"></span><br />
<blockquote>&lt;script src=&#8221;__path to your media player__/swfobject.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;div id=&#8221;__this script id__&#8221; style=&#8221;margin: 3px; padding: 3px; text-align: center; float: left; width: 560px;&#8221;&gt;<br />
&lt;font size=&#8221;3&#8243; color=&#8221;#000100&#8243; face=&#8221;verdana&#8221; style=&#8221;background-color:#FFFFFF&#8221;&gt;&lt;b&gt;&lt;strong&gt;<br />
PLAY &lt;a href=&#8221;__path to your video image__.mp4&#8243;&gt;Apple iTunes MP4&lt;/a&gt; OR &lt;a href=&#8221;__path to your video image__.ogv&#8221;&gt;OPEN FORMAT VIDEO&lt;/strong&gt;&lt;/a&gt;<br />
&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br />
&lt;br clear=&#8221;all&#8221;&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;// &lt;![CDATA[<br />
var sd = new SWFObject('__path to your media player__/mediaplayer.swf','mpl','560','402','8');<br />
sd.addParam('allowscriptaccess','always');<br />
sd.addParam('allowfullscreen','true');<br />
sd.addVariable('height','402');<br />
sd.addVariable('width','560');<br />
sd.addVariable('image','__path to your video poster image__.jpg.jpg');<br />
sd.addVariable('file','__path to your video image__.flv');<br />
sd.write('__this script id__');<br />
// ]]&gt;&lt;/script&gt;</p></blockquote>
<p><img style="display: inline; margin: 0px 0px 10px 20px;" title="how HTML5 video links look over a background image on an iPhone's Safari browser" src="http://blog.trlong.com/wp-content/uploads/2010/03/links-image.png" alt="this is how the HTML5 video links look over a fallback image" width="240" height="160" align="right" /> One can add a little extra wrinkle, and put those links over a fall back image.  This is done by making the image the background in a table.  In both cases, I highlight the links with a background color of white to assure legibility against potentially busy backgrounds.</p>
<blockquote><p>&lt;script src=&#8221;__path to your media player__/swfobject.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;div id=&#8221;__this script id__&#8221; style=&#8221;margin: 3px; padding: 3px; text-align: center; float: left; width: 560px;&#8221;&gt;<br />
&lt;table cellpadding=&#8221;7&#8243; cellspacing=&#8221;0&#8243; border=&#8221;0&#8243; background=&#8221;__path to your fallback image__.jpg&#8221; width=&#8221;560&#8243; height=&#8221;402&#8243;&gt;<br />
&lt;tr&gt;&lt;td align=&#8221;center&#8221; valign=&#8221;bottom&#8221;&gt;<br />
&lt;font size=&#8221;3&#8243; color=&#8221;#000100&#8243; face=&#8221;verdana&#8221; style=&#8221;background-color:#FFFFFF&#8221;&gt;&lt;b&gt;&lt;strong&gt;<br />
PLAY &lt;a href=&#8221;__path to your video image__.mp4&#8243;&gt;Apple iTunes MP4&lt;/a&gt; OR &lt;a href=&#8221;__path to your video image__.ogv&#8221;&gt;OPEN FORMAT VIDEO&lt;/strong&gt;&lt;/a&gt;<br />
&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;br clear=&#8221;all&#8221;&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;// &lt;![CDATA[<br />
var sd = new SWFObject('__path to your media player__/mediaplayer.swf','mpl','560','402','8');<br />
sd.addParam('allowscriptaccess','always');<br />
sd.addParam('allowfullscreen','true');<br />
sd.addVariable('height','402');<br />
sd.addVariable('width','560');<br />
sd.addVariable('image','__path to your video poster image__.jpg.jpg');<br />
sd.addVariable('file','__path to your video image__.flv');<br />
sd.write('__this script id__');<br />
// ]]&gt;&lt;/script&gt;</p></blockquote>
<p>Now, pretty much anyone who isn&#8217;t using an old IE6 browser can have easy access to your videos either <a title="Is Your Blog iPad Ready?" href="http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/">using the &lt;video&gt; tags</a> or flash player first.  Of course, don&#8217;t forget that you could just stick the links under your embedded YouTube video, but then the non-flash crowd gets a missing plug-in message.  I haven&#8217;t really decided yet, but I think I&#8217;ll stick with flash  first.   I&#8217;ll put my links over the fallback image so that everyone gets something pretty to see straight away, even if they&#8217;re going to have to add a click to see the video.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2010/03/flash-first-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Is Your Blog iPad Ready?</title>
		<link>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/</link>
		<comments>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:32:53 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=1273</guid>
		<description><![CDATA[Distributing a video product can be very simple. I just shoot a video with my iPhone. Touch the share button. Touch the &#8216;Send to YouTube&#8217; button and I&#8217;m done. But if one wishes to produce a regular video program or &#8230; <a href="http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><video controls width="490" height="402" poster="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg" preload><br />
<source src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.ogv" type="video/ogg"></source><br />
<source src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.mp4" type="video/mp4"></source><br />
   <object width="490" height="402" type="application/x-shockwave-flash"<br />
		data="https://media.dreamhost.com/mediaplayer.swf?image=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg&amp;file=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv"><param name="movie" value="https://media.dreamhost.com/mediaplayer.swf?image=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg&amp;file=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv" /><!-- fallback image --><br />
		<img src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg" width="490" height="402" alt="demo-video-poster"<br />
		     title="No video playback capabilities, please download the video below" /><br />
   </object><br />
</video></p>
<p>Distributing a video product can be very simple. I just shoot a video with my iPhone. Touch the share button. Touch the &#8216;Send to YouTube&#8217; button and I&#8217;m done.</p>
<p>But if one wishes to produce a regular video program or include video elements in one&#8217;s web page or blog then distribute it to the general public things start to get a little more tricky. My wife has a Droid Eris which runs on Android. You may have an old version of Internet Explorer. (Please tell me you don&#8217;t.) Some of you have Macs which choke on about 75% of the web&#8217;s videos because they are in Flash. On top of everything else, like the iPhone, the new iPad won&#8217;t be able to handle Flash at all.  We could choose to curse the darkness (you fill in who you would blame), but it is dark so we need to light a candle if our web media is going to continue to be relevant into the future.</p>
<p>In addition to the variety of operating systems  or hardware one might have, there are many different browsers one might use. Oh, and there is a change in the HTML standard with regard to video coming down the pike as well. In anticipation, HTML5 has already been implemented in some form or another in most contemporary browsers.</p>
<p><span id="more-1273"></span>An extra challenge in making video forward compatible is that the HTML5 &lt;video&gt; tag standard codecs have not been determined.  <a title="read how they compare" href="http://arstechnica.com/open-source/news/2010/02/ogg-theora-vs-h264-head-to-head-comparisons.ars">Two top contenders are OGG and H.264.</a> OGG has no patents but it is performance deficient. H.264/MPEG-4 AVC has patents but is easily licensed (for a price) and is backed by Apple. I plan to kill the iPod-iPhone best-bet-on-forward-compatibility birds with the <em>H.264 video, up to 1.5 Mbps, 640 x 480, 30 frames per sec., Low-Complexity version of the Baseline Profile with AAC-LC audio up to 160 kbps, 48 Khz</em>, stereo audio in the &#8216;mp4&#8242; container (<a href="http://www.apple.com/itunes/podcasts/specs.html?#formattingvideo" target="_blank">per Apple</a>). Both Handbrake and FormatFactory can do this . <a title="click for full article on Opera 10.5" href="http://lifehacker.com/5483544/opera-105-final-for-windows-brings-the-speed?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+lifehacker%2Ffull+%28Lifehacker%29">Lifehacker</a> reports: &#8220;In terms of HTML5 and video, Opera has gone the way of Firefox, supporting native, Flash-free streams of the Ogg Theora format, but not H.264. Apple&#8217;s Safari supports only H.264, and Google Chrome supports both.&#8221; Mozilla has posted  <a title="click to see the Firefox html4 code tutorial" href="https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox">explicit directions </a> for how to make media available for all browsers. Unfortunately, somebody needs to write the java script to generate the player. <a title="Sublime video" href="http://jilion.com/sublime/video">Sublime video</a> is working on this and has a prototype up at their website. They promise to provide it free for noncommercial use.</p>
<p>The question remains what can one do today? The good news is that if your OS-Browser combo (henceforth to be referred to as your client) can&#8217;t play the provided HTML5 video it ignores it. So, I will be providing code for HTML5 video in all cases.</p>
<p>Modifiers for the video tag include controls, preload, and autoplay. The default is not to autoplay so you can leave that out if you just want the video to start loading without playing. Preload=&#8221;none&#8221; is the default and does not need to be included . Here are a couple of examples from   <a title="Video  for  Everybody" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a>. The controls inherent to HTML5 (not modified with java script) are basic and don&#8217;t allow for moving to full screen. Fortunately, some browsers (thank you Firefox) make this available in the right-click menu.  The video will only be as big as will fit in the space provided by the width and height modifiers.</p>
<blockquote><p>&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls preload autoplay&gt;<br />
&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls preload=&#8221;none&#8221;&gt;</p></blockquote>
<p>But remember that the source video format depends on the client. The iPhone is even limited as to what the maximum resolution it can play will be. The approach that seems to be evolving on the web is to use the multiple source option for HTML5 video. The browser simply plays the first source that is compatible and ignores the others. Modifiers for the source include specifying the video and audio codecs and/or the container type. An example of using just the container type is given by <a title="Video for  Everybody" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a> (VfE). Here the first is for Firefox, Chrome, and Opera and the second allows the iPhone, iPad, Mac crowd to play and the last lets the non-&#8217;mov&#8217; browser play video in the &#8216;mp4&#8242; container.  I did not test this.</p>
<blockquote><p>&lt;source src=&#8221;video.ogv&#8221; type=&#8221;video/ogg&#8221;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;video.mov&#8221; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;video-desktop.mp4&#8243; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;</p></blockquote>
<p><a title="Video on the Web" href="http://diveintohtml5.org/video.html">Video on the Web</a> posts most of the parameters related to &lt;source&gt;. Here is their example of two video files with the optional container type and codecs specified. This speeds how quickly the client can reject an unplayable format which speeds load time:</p>
<blockquote><p>&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls&gt;<br />
&lt;source src=&#8221;NewOrleans2006.ogv&#8221; type=&#8217;video/ogg; codecs=&#8221;theora, vorbis&#8221;&#8216;&gt;<br />
&lt;source src=&#8221;NewOrleans2006.mp4&#8243; type=&#8217;video/mp4; codecs=&#8221;avc1.42E01E, mp4a.40.2&#8243;&#8216;&gt;&lt;/video&gt;</p></blockquote>
<p>But wouldn&#8217;t it be nice to offer Flash with its ability to go full screen with just a user click to those clients capable of doing so? (Please don&#8217;t rant about the security issues with Flash unless you are one of the few pure ones who live outside of the influence of YouTube, okay?) There appears to have been a lot of attention given to providing Flash as a last resort. This process is described as &#8220;degrading&#8221; to Flash. The filter works something like this.  If the client has a browser (Firefox, Chrome, and Opera) that can handle OGG, it plays the first source and skips everything else within the video tags.   If it is a Mac, iPhone, or iPad, it skips the first source and lands on a second source in a &#8216;mov&#8217; container. If the client is an iPhone or iPod it could play an alternate second source generated using QuickTime Pro. I&#8217;m lazy so I&#8217;m just going to have on H.264 source small enough that both Mac and iPhone (and presumably iPad) users can share. If one is watching on the web 640 px is plenty wide enough. If I didn&#8217;t have doubts about licensing issues I might reverse the OGG versus H.264 order. Finally, an object can be included within the video tags to provide ELSE actions if the client can&#8217;t play HTML5 video. In this scenario, the object is flash video. After studying the above sources, I adapted their code for my blog to illustrate their degradation algorithm using my own web host&#8217;s flash player. It starts OGG, then filters down to an iPhone file in a &#8216;mov&#8217; container, then degrades to flash. Since I&#8217;m not doing the QuickTime Pro deal, I use the &#8216;mp4&#8242; container instead of &#8216;mov&#8217;. Currently, this code has been demonstrated to degrade to flash on Internet Explorer 7. When using Opera 10.5, Chrome or Firefox, it plays the ogg file as HTML5 video. It switches to the &#8216;mov&#8217; HTML5 only on the iPhone. My display is broken on my iBook so I didn&#8217;t test with that. My wife&#8217;s Eris also handles this well.  The relevance of the lead in video is that it is written just like this.  (It appears that Firefox 3.5 does not display the poster image, but Firefox 3.6 does.  Otherwise the player seems the same.)</p>
<blockquote><p>&lt;video controls width=&#8221;560&#8243; height=&#8221;402&#8243; poster=&#8221;__Your_Full_Poster_Path__.jpg preload&gt;<br />
&lt;source src=&#8221;__Your_Full_Video_Path__.ogv&#8221; type=&#8221;video/ogg&#8221;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;__Your_Full_Video_Path__.mov&#8221; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;<br />
&lt;object width=&#8221;560&#8243; height=&#8221;402&#8243; type=&#8221;application/x-shockwave-flash&#8221;<br />
data=&#8221;__Your_Flash_Players_Full_Path__.swf?image=__Your_Full_Poster_Path__.jpg&amp;amp;file=__Your_Full_Video_Path__.flv&#8221;&gt;   &lt;param name=&#8221;movie&#8221; value=&#8221;__Your_Flash_Players_Full_Path__.swf?image=__Your_Full_Poster_Path__.jpg&amp;amp;file=<span style="font-family: courier new;">__Your_Full_Video_Path__&#8221; /&gt;<br />
&lt;!&#8211; fallback image &#8211;&gt;<br />
&lt;img src=&#8221;__Your_Full_Poster_Path__.jpg&#8221; width=&#8221;560&#8243; height=&#8221;402&#8243; alt=&#8221;__Your_Video_Title__&#8221;   title=&#8221;No video playback capabilities&#8221; /&gt;<br />
&lt;/object&gt;<br />
&lt;/video&gt; </span></p></blockquote>
<p>One little caveat for you WordPress posters.  If you switch in the online editor from HTML to Visual view the editor will happily foul up all this wonderful code.  Stay in HTML view till you publish and you&#8217;ll be just fine.  We&#8217;ve only scratched the surface of this topic so here are some links to the places I went to to get to this point.  Hope you find this all helpful.</p>
<p><strong>Useful Resources: </strong><br />
<a title="a ground up explanation of the topic - start here" href="http://diveintohtml5.org/video.html">Video on the Web</a><br />
<a title="click for a thorough and detailed treatment of the subject - intermediate level" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a><br />
<a title="click for an example of an HTML5 player optimized with java - sweet" href="http://jilion.com/sublime/video">Sublime Video</a><br />
<a title="more advanced coders click to see the Mozilla code tutorial" href="https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox">Mozilla on HTML5</a><br />
<a title="click for full article on Opera 10.5" href="http://lifehacker.com/5483544/opera-105-final-for-windows-brings-the-speed?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+lifehacker%2Ffull+%28Lifehacker%29">Lifehacker on Opera 10.5</a><br />
<a title="click to see a head to head comparison of OGG-Theora and H264" href="http://arstechnica.com/open-source/news/2010/02/ogg-theora-vs-h264-head-to-head-comparisons.ars">arstechnica</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.mp4" length="" type="" />
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.ogv" length="1495928" type="video/ogg" />
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv" length="1197740" type="video/x-flv" />
		</item>
		<item>
		<title>Video Thumbnails in Your Blog</title>
		<link>http://blog.trlong.com/2009/03/summary-video-first-template/</link>
		<comments>http://blog.trlong.com/2009/03/summary-video-first-template/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:55:45 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=531</guid>
		<description><![CDATA[Today you have the opportunity to participate in my first ever ONLINE POLL! Check out the various ways of showing video on a WordPress blog and vote for your favorite. (To put this in context, you might want to read &#8230; <a href="http://blog.trlong.com/2009/03/summary-video-first-template/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today you have the opportunity to participate in my first ever ONLINE POLL!  Check out the various ways of showing video on a WordPress blog and vote for your favorite.  (To put this in context, you might want to read my post from a couple of days ago, <a href="http://blog.trlong.com/2009/03/working-out-my-format/">Working out my blog format</a>)</p>
<p><strong>YouTube in Division Floated Left without a border</strong></p>
<div style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="226" height="170" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="left" /><param name="src" value="http://www.youtube.com/v/Mv7Hl54u-CA" /><embed type="application/x-shockwave-flash" width="226" height="170" src="http://www.youtube.com/v/Mv7Hl54u-CA" align="left"></embed></object>Centered Caption</div>
<p>The most challenging formatting comes with floating a video thumbnail to the left and allowing text to wrap down the right side.  The embed code one gets from the video host (YouTube for the example on the left) does not allow for such formatting.  If there is a slicker way to handle this, please let me know in the comments.</p>
<p>What I did was create a division within <span id="more-531"></span>html that I could float left.  This also gives the option of including a frame, but in my standard layout I don&#8217;t do this.  Early versions of Internet Explorer reportedly did not handle the margins (spacing outside the division) or padding (spacing inside the division) properly.  IE7 appears to have rectified this.</p>
<p>An example of this code is shown here:</p>
<blockquote><p>&lt;div  style=&#8221;text-align: center; margin: 3px; padding: 3px; float: left; width: 230px;&#8221;&gt;&lt;object width=&#8221;226&#8243; height=&#8221;170&#8243; data=&#8221;http://www.youtube.com/v/Mv7Hl54u-CA&#8221; type=&#8221;application/x-shockwave-flash&#8221;&gt;&lt;param name=&#8221;align&#8221; value=&#8221;left&#8221; /&gt;&lt;param name=&#8221;src&#8221; value=&#8221;http://www.youtube.com/v/Mv7Hl54u-CA&#8221; /&gt;&lt;/object&gt;Centered Caption&lt;/div&gt;</p></blockquote>
<p><strong>Embed Life Adventures Player in Division Floated Left without a border</strong></p>
<div style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="226" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="left" /><param name="src" value="http://blip.tv/play/gvk688MsAA%2Em4v" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="226" height="200" src="http://blip.tv/play/gvk688MsAA%2Em4v" allowfullscreen="true" align="left"></embed></object>Centered Caption</div>
<p>Another video host is blip.tv, which allows one to modify the appearance of their player slightly.  For example, I added the name of my travel blog Life Adventures in the branding field at the bottom of the video.  I&#8217;m using the exact same division tags as in the previous code but pasting the blip.tv embed code between the tags.  I think this looks less visually cluttered on such a small thumbnail than YouTube which superimposes their logo in the bottom right hand area.</p>
<p><strong>Embed Vimeo in Division Floated Left without a border</strong></p>
<div style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="225" height="169" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=3722612&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="225" height="169" src="http://vimeo.com/moogaloop.swf?clip_id=3722612&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>Centered Caption</div>
<p>Vimeo also offers hosting service.  While it doesn&#8217;t impact the blog reader&#8217;s interface, Vimeo is constantly asking their user&#8217;s to upgrade.  It is a minor annoyance, but not something YouTube or blip.tv do.</p>
<p>On the other hand, look how cool the player is.  Nothing but thumbnail, baby.  For the blog reader, this is the cleanest interface I&#8217;ve found.<br />
<br clear=all><br />
<h2>The &#8220;also rans&#8221;</h2>
<p>There are a multitude of ways to show flash video in WordPress.  Some require javascript.  Others require a plug-in.  One is limited only by the lengths to which one is willing to go in order to master this media.  Here are some further examples.  I might use these in special cases, but it is doubtful.  That is why they are not included in the polling.  I just include them here for the sake of completeness.</p>
<p><strong>Script to Dreamhost&#8217;s JW Player javascript</strong><br />
<script src="https://media.dreamhost.com/swfobject.js" type="text/javascript"></script></p>
<div id="foo" style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<p>One can also use one&#8217;s host&#8217;s player.  (Be aware of any licensing issues.  For more information, contact your host provider.)  My host has licensed the use of the JW Player.  The advantage here is that one has full control of the display.  Another advantage is that one can keep all the video files stored at one&#8217;s own site.  The disadvantage is that it requires a minimal comfort level with same basic java scripting.  I&#8217;m not sure it is worth it, when one has the option to just cut and paste embed code from video host providers.  (If you use Dreamhost&#8217;s video format converting utility they generate the java.  If not, remember to add 20 to the video height to get the overall player height if you show a toolbar.)<br />
 <script type="text/javascript">// <![CDATA[
var sd = new SWFObject('https://media.dreamhost.com/mediaplayer.swf','mpl','226','190','8');
sd.addParam('allowscriptaccess','always');
sd.addParam('allowfullscreen','true');
sd.addVariable('height','190');
sd.addVariable('width','226');
sd.addVariable('image','http://blog.trlong.com/wp-content/gallery/geek-tutorials/barbados-catamaran226_170.jpg');
sd.addVariable('file','http://a6.video.blip.tv/0750007509268/Tom4Surfing-BarbadosCatamaranLaunch610.flv');
sd.write('foo');
// ]]&gt;</script></p>
<p><strong>Dreamhost&#8217;s JW Player using the <em>WP-FLV</em> Plug-in</strong></p>
<div style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;"><flv href="null" width="null" height="null" autostart="false" /><flv href="http://blip.tv/file/1883104" width="226" height="170" autostart="false" />Centered Caption</div>
<p>This plug-in is conveniently provided by my host provider.  My main gripe with the plug-in is that it does not allow for a poster image so the video &#8220;thumbnail&#8221; is a black rectangle.  I&#8217;m not sure why Dreamhost doesn&#8217;t just default to the <em>Embed FLV</em> plug-in.</p>
<p><br clear=all><strong>JW Player set up by the <em>Embed FLV</em> Plug-in</strong></p>
<div style="margin: 3px; padding: 3px; text-align: center; float: left; width: 230px;">[flv:http://blip.tv/file/get/Tom4Surfing-BarbadosCatamaranLaunch610.flv http://blog.trlong.com/wp-content/gallery/geek-tutorials/barbados-catamaran226_170.jpg 226 170]Centered Caption</div>
<p>Fully customizable player.  But all flash players using this plug-in must have the same style in every instance of every post.  For example, if the toolbar is set up to auto-hide in this post, it will auto-hide in every post.</p>
<p>I hope this will save someone some time in figuring out how to display flash in WordPress.</p>
<p>And, now, the polls are open.</p>
<p>Loading&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2009/03/summary-video-first-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blip.tv/file/get/Tom4Surfing-BarbadosCatamaranLaunch610.flv" length="1298772" type="video/x-flv" />
<enclosure url="http://a6.video.blip.tv/0750007509268/Tom4Surfing-BarbadosCatamaranLaunch610.flv" length="1298772" type="video/x-flv" />
		</item>
	</channel>
</rss>

