<?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>Ubelly &#187; howto</title>
	<atom:link href="http://www.ubelly.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubelly.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 11:50:15 +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>HTML5 Video and Sky News</title>
		<link>http://www.ubelly.com/2011/03/html5-video-and-sky-news/</link>
		<comments>http://www.ubelly.com/2011/03/html5-video-and-sky-news/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 15:01:00 +0000</pubDate>
		<dc:creator>thebeebs</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.ubelly.com/2011/03/html5-video-and-sky-news/</guid>
		<description><![CDATA[<div><img width="460" height="240" src="http://www.ubelly.com/wp-content/uploads/2011/03/sky.jpg" class="attachment-type-photo wp-post-image" alt="sky" title="sky" /></div>Let us show you how Sky New used HTML5 video to create a nice looking video concept site.]]></description>
			<content:encoded><![CDATA[<div><img width="460" height="240" src="http://www.ubelly.com/wp-content/uploads/2011/03/sky.jpg" class="attachment-type-photo wp-post-image" alt="sky" title="sky" /></div><p><iframe title="YouTube video player" src="http://www.youtube.com/embed/heI69L8fS6Q" frameborder="0" width="605" height="370"></iframe></p>
<p>&nbsp;</p>
<p>Above we have a video tutorial, if you don’t like video then I have also written it up below.</p>
<p>As soon as you mention HTML5 its not long before someone mentions Video. That’s because HTML5 now enable you to put video in your web pages without the need for a plugin like flash.</p>
<p>To test HTML5 video Sky News produced <a href="http://interactive.news.sky.com/ie9/">this concept page</a>, as you can see as the mouse moves around the site different stories come into view from the left and right.</p>
<p>If you click on the image the video zooms into view. Now all of the controls on this video, like the play button, the timebar and the volume are all custom. You can build custom controls for videos by using a little CSS and JavaScript.</p>
<p><a href="http://www.ubelly.com/wp-content/uploads/2011/03/image17.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Video Controls" src="http://www.ubelly.com/wp-content/uploads/2011/03/image_thumb5.png" alt="Control Buttons" width="605" height="66" border="0" /></a></p>
<p>Sky News have actually used a <a href="http://www.videojs.com">third party video player</a> but we are going to build ours from scratch</p>
<p>If we press F12 in IE9 and use the developer tools to look at the code we can see the <strong>playbutton</strong> is just a div div layer which has probably had a background image set.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:78133d05-e604-4962-85fa-7d29e40fb924" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div </span><span style="color: #ff0000;">class</span><span style="color: #0000ff;">=&#8221;playbutton&#8221;</span><span style="color: #0000ff;">/&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>The video is simply an image placeholder. What sky do is when you click the image they fire off some JavaScript that zooms the image and then creates a HTML5 video player dynamically using JavaScript.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:22278725-4bae-41d0-a3fb-181faaa5d470" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">img </span><span style="color: #ff0000;">alt</span><span style="color: #0000ff;">=&#8221;"</span><span style="color: #ff0000;"> src</span><span style="color: #0000ff;">=&#8221;http://news.sky.com/sky-news/content/StaticFile/thirdparty/jpg/2011/Mar/Week3/15953965_400x240.jpg&#8221;</span><span style="color: #ff0000;"> data-vid</span><span style="color: #0000ff;">=&#8221;http://static1.sky.com/feeds/skynews/latest/h264/2000/2011/03/170311-japan-woods-0600-online.mp4&#8243;</span><span style="color: #0000ff;">/&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>The third party HTML5 video player they use is called VideoJs which you can find at <a href="http://www.videojs.com">http://www.videojs.com</a>.</p>
<p>Now The player I have created for this demo is a lot simpler.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.ubelly.com/wp-content/uploads/2011/03/image18.png" alt="image" width="607" height="282" border="0" /></p>
<p>When we hover over the play icon fades out then when we click the video it zooms in and starts playing. If I click the video again it stops playing and zooms back out again.</p>
<p>The basic video tag is quite straight forward.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:f2c3aa3a-08b1-4d28-bece-b7523d290fb4" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">video </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;myVideo&#8221;</span><span style="color: #ff0000;"> width</span><span style="color: #0000ff;">=&#8221;320&#8243;</span><span style="color: #ff0000;"> height</span><span style="color: #0000ff;">=&#8221;180&#8243;</span><span style="color: #ff0000;"> poster</span><span style="color: #0000ff;">=&#8221;yoyo.jpg&#8221;</span><span style="color: #ff0000;"> preload</span><span style="color: #0000ff;">=&#8221;none&#8221;</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.mp4&#8243;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/mp4; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;avc1.42E01E, mp4a.40.2&#8243;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.ogg&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/ogg; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;theora, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.webM&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/webm; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;vp8, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">video</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>We have an ID to identify the tag using JavaScript and a Height and width attribute to declare the dimensions. We also have a tag called poster, this point to a JPEG which will be placed on the screen before the video has loaded as a place holder. Lastly we have a preload attribute, I have set it to <strong>none</strong> which will mean that the video will not attempt to buffer.</p>
<p>If you want you can add a controls attribute to this tag that will add a play button a timeline and various controls to the video but for the purposes of this demo we are going to switch them off as we want to build our own controls</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0fb1b392-ac60-497f-88de-74ffdbda3862" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">video </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;myVideo&#8221;</span><span style="color: #ff0000;"> controls</span><span style="color: #0000ff;">=&#8221;controls&#8221;</span><span style="color: #ff0000;"> width</span><span style="color: #0000ff;">=&#8221;320&#8243;</span><span style="color: #ff0000;"> height</span><span style="color: #0000ff;">=&#8221;180&#8243;</span><span style="color: #ff0000;"> poster</span><span style="color: #0000ff;">=&#8221;yoyo.jpg&#8221;</span><span style="color: #ff0000;"> preload</span><span style="color: #0000ff;">=&#8221;none&#8221;</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>Sadly <a href="http://www.ubelly.com/2011/01/google-drops-h-264-codec-support/">there is no consensus</a> on what codec should be used to play videos and therefore if we want to support as many browsers as possible we potentially need to use a number of different vide sources.</p>
<p>The Browser will go through each source until it finds one it can play.</p>
<p>Firstly we have an mp4 source, this uses the H.264 video and will play in safari and the desktop and iPad and iPhone and is also supported by IE9.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:90b24383-e986-4bc8-9d42-40b0955f1984" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.mp4&#8243;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/mp4; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;avc1.42E01E, mp4a.40.2&#8243;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>Next OGG Theora,  which will play in Opera, Firefox and Chrome</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:2351e173-c3f8-467f-8fdd-9771878a284f" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.ogg&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/ogg; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;theora, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>And lastly WebM which is supported by IE9, Chrome, FireFox and Opera.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:050189ac-4bd0-4091-b238-28cb0275fdaa" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.webM&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/webm; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;vp8, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>If a browser isn&#8217;t capable of supporting html5 it will show fall back text, the fallback text could be a link to the video for download or maybe a flash video object</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Fall Back" src="http://www.ubelly.com/wp-content/uploads/2011/03/image19.png" alt="Fall Back" width="607" height="42" border="0" /></p>
<p>Now I&#8217;m going to use JavaScript in this demo, so to make things easy I&#8217;m going to add a reference to jQuery</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:9a756c71-6bbb-43be-bb5a-64fdb4dc8228" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js &#8220;</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>Now back at the HTML I&#8217;m going to add a <strong>div</strong> which is going to be my play button, I will give it the class of <strong>playButton</strong>.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:dffdf69c-c6ca-4159-b0ff-8ffdfc61613b" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;videoContatiner&#8221;</span><span style="color: #ff0000;"> onclick</span><span style="color: #0000ff;">=&#8221;playButton()&#8221;</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div </span><span style="color: #ff0000;">class</span><span style="color: #0000ff;">=&#8221;playButton&#8221;</span><span style="color: #0000ff;">&gt;</span><span style="color: #000000;"> Play </span><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">video </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;myVideo&#8221;</span><span style="color: #ff0000;"> width</span><span style="color: #0000ff;">=&#8221;320&#8243;</span><span style="color: #ff0000;"> height</span><span style="color: #0000ff;">=&#8221;180&#8243;</span><span style="color: #ff0000;"> poster</span><span style="color: #0000ff;">=&#8221;yoyo.jpg&#8221;</span><span style="color: #ff0000;"> preload</span><span style="color: #0000ff;">=&#8221;none&#8221;</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.mp4&#8243;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/mp4; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;avc1.42E01E, mp4a.40.2&#8243;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.ogg&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/ogg; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;theora, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.webM&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/webm; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;vp8, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">video</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>Then I will add a div that wraps the video and the playbutton to make it easier to style. And on the div I&#8217;m going to add an <strong>onclick</strong> event so that when the layer is clicked we are going to call the JavaScript function <strong>playButton</strong>()</p>
<p>Next I will add a CSS class called <strong>playButton</strong> to style the button.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:e5f19d90-4efc-4540-b6e3-9953668bcb09" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #800000;">.playButton </span><span style="color: #000000;">{</span><span style="color: #ff0000;"> position</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> absolute</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> width</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 35%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> left</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 35%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> top</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 30%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> color</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> #fff</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> border-radius</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 10px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> font-family</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> Arial</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> font-size</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 20px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> padding-top</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 10%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> padding-bottom</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> 10%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> vertical-align</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> middle</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> text-align</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> center</span><span style="color: #000000;">;</span><span style="color: #ff0000;"> background</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> rgba(0, 0, 0, 0.9)</span><span style="color: #000000;">;</span><span style="color: #000000;">}</span></div>
<p>&nbsp;</p>
</div>
<p>I have used an  RGBA background colour, t0.9 setting on the alpha channel, will make the background slightly transparent</p>
<p>Then I will add a CC pseudo class so that when we hover over the video container the play buttons background become even more transparent:</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:bab3454f-0ec2-4edd-92f3-9841b2844bb1" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #800000;">#videoContatiner:hover .playButton </span><span style="color: #000000;">{</span><span style="color: #ff0000;"> background</span><span style="color: #000000;">:</span><span style="color: #0000ff;"> rgba(0, 0, 0, 0.5)</span><span style="color: #000000;">;</span><span style="color: #000000;">}</span></div>
<p>&nbsp;</p>
</div>
<p>Up the top I have added the JavaScript function called <strong>playButton, t</strong>his is what is called by the onclick event that we added earlier.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:1646889e-eafe-4751-97b2-90501c378284" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">function</span><span style="color: #000000;"> playButton() { </span><span style="color: #0000ff;">var</span><span style="color: #000000;"> video </span><span style="color: #000000;">=</span><span style="color: #000000;"> $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">#myVideo</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).get(</span><span style="color: #000000;">0</span><span style="color: #000000;">); </span><span style="color: #0000ff;">var</span><span style="color: #000000;"> width </span><span style="color: #000000;">=</span><span style="color: #000000;">320</span><span style="color: #000000;">; </span><span style="color: #0000ff;">var</span><span style="color: #000000;"> height </span><span style="color: #000000;">=</span><span style="color: #000000;">180</span><span style="color: #000000;">; </span><span style="color: #0000ff;">var</span><span style="color: #000000;"> zoomWidth </span><span style="color: #000000;">=</span><span style="color: #000000;"> width </span><span style="color: #000000;">*</span><span style="color: #000000;">1.2</span><span style="color: #000000;">; </span><span style="color: #0000ff;">var</span><span style="color: #000000;"> zoomHeight </span><span style="color: #000000;">=</span><span style="color: #000000;"> height </span><span style="color: #000000;">*</span><span style="color: #000000;">1.2</span><span style="color: #000000;">; </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (video.paused) { $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).text(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">loading</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">); $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).animate({ width: zoomWidth, height: zoomHeight }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(video).animate({ width: zoomWidth, height: zoomHeight }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); video.play(); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).fadeOut(</span><span style="color: #000000;">1000</span><span style="color: #000000;">); } </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> { video.pause(); $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).animate({ width: width, height: height }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(video).animate({ width: width, height: height }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).text(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">play</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).fadeIn(</span><span style="color: #000000;">1000</span><span style="color: #000000;">); } }</span></div>
<p>&nbsp;</p>
</div>
<p>This function gets a reference to the video object and if it&#8217;s paused it changes the buttons text to read loading.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:766aaef8-8437-40c0-8af6-80a2b6f0484f" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #000000;">$(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).text(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">loading</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">); </span></div>
<p>&nbsp;</p>
</div>
<p>I then use jQuery to animate the width and height of the video object and the video container. This gives the effect that the video is zooming.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:ee0fa5be-ec7e-4216-8de9-4dbfd369d7e2" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #000000;">$(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).animate({ width: zoomWidth, height: zoomHeight }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(video).animate({ width: zoomWidth, height: zoomHeight }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); </span></div>
<p>&nbsp;</p>
</div>
<p>I then tell the video to start playing. And then finally I fade out the play button from sight.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:b6d83569-1d42-4c55-93ce-2833d83f28f1" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #000000;">video.play(); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).fadeOut(</span><span style="color: #000000;">1000</span><span style="color: #000000;">);</span></div>
<p>&nbsp;</p>
</div>
<p>Now if the video is not paused. I.e it&#8217;s playing</p>
<p>Firstly I pause the video</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:05511666-1de1-448e-85c9-c12e830222ac" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">else</span><span style="color: #000000;"> { video.pause(); $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).animate({ width: width, height: height }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(video).animate({ width: width, height: height }, </span><span style="color: #000000;">200</span><span style="color: #000000;">); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).text(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">play</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">.playButton</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).fadeIn(</span><span style="color: #000000;">1000</span><span style="color: #000000;">); }</span></div>
<p>&nbsp;</p>
</div>
<p>I then animate the <strong>videocontainer</strong> and the video object back to their original size. I set the <strong>playbuttons</strong> text to play and finally I fade the playbutton back into view.</p>
<p>If you want to learn more about HTML check out the videos at <a href="http://www.ubelly.com/html5">http://www.ubelly.com/html5</a> and we have also got a few sample chapters from a great HTML5 book that you can find here <a title="http://ubel.ly/html5BookSample" href="http://ubel.ly/html5BookSample">http://ubel.ly/html5BookSample</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubelly.com/2011/03/html5-video-and-sky-news/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://static1.sky.com/feeds/skynews/latest/h264/2000/2011/03/170311-japan-woods-0600-online.mp4" length="30544097" type="video/mp4" />
<enclosure url="http://www.thewayithink.co.uk/html5/yoyo.mp4" length="3007656" type="video/mp4" />
<enclosure url="http://www.thewayithink.co.uk/html5/yoyo.ogg" length="1245" type="audio/ogg" />
		</item>
		<item>
		<title>Feature Detection and Sky News</title>
		<link>http://www.ubelly.com/2011/03/feature-detection-and-sky-news/</link>
		<comments>http://www.ubelly.com/2011/03/feature-detection-and-sky-news/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 15:00:00 +0000</pubDate>
		<dc:creator>thebeebs</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.ubelly.com/2011/03/feature-detection-and-sky-news/</guid>
		<description><![CDATA[<div><img width="460" height="240" src="http://www.ubelly.com/wp-content/uploads/2011/03/modernizr.gif" class="attachment-type-photo wp-post-image" alt="modernizr" title="modernizr" /></div>Feature detection is a critical technique to understand if you want to use HTML5 responsibly]]></description>
			<content:encoded><![CDATA[<div><img width="460" height="240" src="http://www.ubelly.com/wp-content/uploads/2011/03/modernizr.gif" class="attachment-type-photo wp-post-image" alt="modernizr" title="modernizr" /></div><p><iframe title="YouTube video player" src="http://www.youtube.com/embed/wDRpFd7Ns_k" frameborder="0" width="605" height="370"></iframe></p>
<p>Above we have a video tutorial, if you don’t like video then I have also written it up below.</p>
<p>In the <a href="http://www.ubelly.com/2011/03/html5-video-and-sky-news/" target="_blank">last video tutorial</a> we showed how Sky News built a HTML5 Video Experience, in this video we are going to show how they used Feature Detection and how we can use it to improve the demo we created in the previous tutorial.</p>
<p>In the Preview Versions of IE9 there was no support for CSS2D Transforms, but we knew it was coming.</p>
<p>Sky wanted to use 2D transforms to get a Zooming and scrolling effect.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.ubelly.com/wp-content/uploads/2011/03/image20.png" alt="image" width="605" height="381" border="0" /></p>
<p>So sky used feature detection to test the browser to see if it was capable of using CSS2D transforms. If if it wasn&#8217;t they would fall back to an alternative JavaScript way of producing the same effect.</p>
<p>Now in our <a href="http://www.ubelly.com/2011/03/html5-video-and-sky-news/">video demo</a> this is very useful because we can use JavaScript feature detection to determine if the browsers can support HTML5 video and if it doesn&#8217;t we can do something fancy with JavaScript to fall back and ensure our users still have a great experience.</p>
<p>Now I&#8217;m going to use the F12 IE9 Developer tools (just press F12) to show you what it is like if you visit the video demo in a browser like IE8 which doesn&#8217;t support HTML5 Video.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.ubelly.com/wp-content/uploads/2011/03/image21.png" alt="image" width="607" height="350" border="0" /></p>
<p>As you can see the video is just ignored.</p>
<p>There is a basic way to solve this issue.</p>
<p>We can sort of fix this by adding in a youtube iframe tag. In just after all of the video sources in the video tag.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:7736328d-0843-4fc3-8f69-ccd8eb6c10e9" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">video </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;myVideo&#8221;</span><span style="color: #ff0000;"> width</span><span style="color: #0000ff;">=&#8221;320&#8243;</span><span style="color: #ff0000;"> height</span><span style="color: #0000ff;">=&#8221;180&#8243;</span><span style="color: #ff0000;"> poster</span><span style="color: #0000ff;">=&#8221;yoyo.jpg&#8221;</span><span style="color: #ff0000;"> preload</span><span style="color: #0000ff;">=&#8221;none&#8221;</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.mp4&#8243;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/mp4; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;avc1.42E01E, mp4a.40.2&#8243;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.ogg&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/ogg; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;theora, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;http://www.thewayithink.co.uk/html5/yoyo.webM&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8217;video/webm; </span><span style="color: #ff0000;">codecs</span><span style="color: #0000ff;">=&#8221;vp8, vorbis&#8221;</span><span style="color: #ff0000;">&#8216; </span><span style="color: #0000ff;">/&gt;</span><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">iframe </span><span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;youtubeVid&#8221;</span><span style="color: #ff0000;"> style</span><span style="color: #0000ff;">=&#8221;display:none;&#8221;</span><span style="color: #ff0000;"> title</span><span style="color: #0000ff;">=&#8221;YouTube video player&#8221;</span><span style="color: #ff0000;"> width</span><span style="color: #0000ff;">=&#8221;320&#8243;</span><span style="color: #ff0000;"> height</span><span style="color: #0000ff;">=&#8221;210&#8243;</span><span style="color: #ff0000;"> src</span><span style="color: #0000ff;">=&#8221;http://www.youtube.com/embed/EHlN21ebeak&#8221;</span><span style="color: #ff0000;"> frameborder</span><span style="color: #0000ff;">=&#8221;0&#8243;</span><span style="color: #ff0000;"> allowfullscreen</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">iframe</span><span style="color: #0000ff;">&gt;</span><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">video</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>If we look at the demo again and change the browser mode to IE8 you will now see that the HTML fallback kicks in and we now have at least a video on the page.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.ubelly.com/wp-content/uploads/2011/03/image22.png" alt="image" width="605" height="456" border="0" /></p>
<p>But what if you want more granular control. What if you want to do something more fancy.</p>
<p>Well I&#8217;m going to use this library called <a href="http://www.modernizr.com/">Modernizr</a>.</p>
<p><a href="http://www.modernizr.com/">Modernizr</a> is a JavaScript library that makes feature detection easy by having tons of little tests that can determine if a browser can support various HTML5 and CSS3 technologies.</p>
<p>I download the Library from their website to my local machine. I will then add the script reference to the page .</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:a4d1f4a3-c4dc-44d1-83d7-e7656fcc5f4b" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">=&#8221;Scripts/modernizr-1.7.min.js&#8221;</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">=&#8221;text/javascript&#8221;</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></div>
<p>&nbsp;</p>
</div>
<p>Then I will add a jQuery on ready function. When the browser has loaded it&#8217;s going run whatever is in this section.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:8bbeaa88-4bd7-472e-ac18-08d0b16b15db" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><!--</p>
<p>Code highlighting produced by Actipro CodeHighlighter (freeware)</p>
<p>http://www.CodeHighlighter.com/</p>
<p>--><span style="color: #000000;">$(document).ready(</span><span style="color: #0000ff;">function</span><span style="color: #000000;"> () { </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (Modernizr.video) { $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#youtubeVid</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).hide(); $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).show(); } </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> { $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#youtubeVid</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).show(); $(</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">).hide(); $(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">#videoContatiner</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">).before(</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">&lt;p&gt;You should get a browser that supports HTML5 Video&lt;/p&gt;</span><span style="color: #000000;">&#8216;</span><span style="color: #000000;">); } });</span></div>
<p>&nbsp;</p>
</div>
<p>The code basically says If <strong>modinizer.video</strong> or in other words if the browser supports HTML5 Video then hide the <strong>youtubeVid</strong> and show the <strong>videoContainer</strong>. But if HTML5 is not supported, show the <strong>youtubeVid </strong>and hide the <strong>videoContainer</strong>.</p>
<p>Then just before the <strong>videoContainer</strong> insert some text to says you should get a HTML5 capable browser.</p>
<p>So now when we view the demo and Change the document mode to IE8 we now not only have the flash fallback but we have also inserted the text correctly.</p>
<p>Now modernizer tests for all sort of features like Canvas, GeoLocation it is also possible to use it to control CSS logic if you want to find out more you should check their <a href="http://www.modernizr.com/docs/">documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubelly.com/2011/03/feature-detection-and-sky-news/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.thewayithink.co.uk/html5/yoyo.mp4" length="3007656" type="video/mp4" />
<enclosure url="http://www.thewayithink.co.uk/html5/yoyo.ogg" length="1245" type="audio/ogg" />
		</item>
		<item>
		<title>Video HowTo: Creating extremely high-res imagery</title>
		<link>http://www.ubelly.com/2010/06/video-howto-creating-extremely-high-res-imagery/</link>
		<comments>http://www.ubelly.com/2010/06/video-howto-creating-extremely-high-res-imagery/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:25:40 +0000</pubDate>
		<dc:creator>Mike O</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[deep zoom]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.ubelly.com/?p=1635</guid>
		<description><![CDATA[Following on from my post “Video HowTo: Creating a Deep Zoom with high-res regions”, I’ve created another video illustrating a  <a href="http://www.ubelly.com/2010/06/video-howto-creating-extremely-high-res-imagery/" class="more-link"><span class="more-icon"></span><span class="screen-reader-text">Continue Reading</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following on from my post “<a href="http://www.ubelly.com/2010/06/video-howto-creating-a-deep-zoom-with-high-res-regions">Video HowTo: Creating a Deep Zoom with high-res regions</a>”, I’ve created another video illustrating a similar technique but this time using image stitching to create an extremely high-res image. Silverlight Deep Zoom is perfect for this as it allows the end user to explore the whole image, at whatever depth they choose, in a very interactive way.</p>
<p><a href="http://www.ubelly.com/2010/05/retail-applications-for-deep-zoom-and-silverlight">This post</a> contains a simple example which I recreate in the video. </p>
<p> <object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/2vxQtlY8ozA&amp;hl=en_GB&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2vxQtlY8ozA&amp;hl=en_GB&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
<p>The video describes the fundamentals of how to create this type of experience using standard consumer photographic equipment (digital camera, tripod) and a free tool called <a href="http://bit.ly/MicrosoftICE">Microsoft Image Composite Editor</a> that stitches together the raw images and (optionally) generates a Deep Zoom Silverlight application. </p>
<p>The resulting application can be embedded on a web page. Importantly there’s no requirement to host in IIS or use ASP.NET, the Silverlight application can be hosted on pretty much any web server and any type of web page (HTML, PHP etc etc). This opens up the possibility to embed extremely rich content irrespective of the web stack or framework at the heart of your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubelly.com/2010/06/video-howto-creating-extremely-high-res-imagery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video HowTo: Creating a Deep Zoom with high-res regions</title>
		<link>http://www.ubelly.com/2010/06/video-howto-creating-a-deep-zoom-with-high-res-regions/</link>
		<comments>http://www.ubelly.com/2010/06/video-howto-creating-a-deep-zoom-with-high-res-regions/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 07:55:30 +0000</pubDate>
		<dc:creator>Mike O</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[deep zoom]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[retail]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.ubelly.com/?p=1599</guid>
		<description><![CDATA[In previous posts I’ve described a number of different applications for enhancing the customer experience in online retailing (although of  <a href="http://www.ubelly.com/2010/06/video-howto-creating-a-deep-zoom-with-high-res-regions/" class="more-link"><span class="more-icon"></span><span class="screen-reader-text">Continue Reading</span></a>]]></description>
			<content:encoded><![CDATA[<p>In previous posts I’ve described a number of different applications for enhancing the customer experience in online retailing (although of course these techniques lend themselves to many other applications as well) using Deep Zoom and Silverlight. In the next few posts I&#8217;ll be exploring how to achieve these effects.</p>
<p>I’ll start with <a href="http://www.ubelly.com/2010/05/retail-applications-for-deep-zoom-and-silverlight-continued-1">this post</a> in which I describe a Deep Zoom application that allows you to explore an overall image (some form of merchandise in the retail scenario) and embed regions of extremely high detail that can be explored. A typical example might be a jacket or a pair of jeans where you can roam around the item and seamlessly drill down into pocket / stitching / label details etc. The post contains a simple example which I recreate in the video.</p>
<p> <object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/j5cnuUPMoCU&amp;hl=en_GB&amp;fs=1&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/j5cnuUPMoCU&amp;hl=en_GB&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
<p>The video describes the fundamentals of how to create this type of experience using standard consumer photographic equipment (digital camera, tripod) and a free tool called <a href="http://bit.ly/DeepZoomComposer">Deep Zoom Composer</a> that allows you to combine the raw imagery and generate the Deep Zoom Silverlight application.</p>
<p>The resulting application can be embedded on a web page. Importantly there’s no requirement to host in IIS or use ASP.NET, the Silverlight application can be hosted on pretty much any web server and any type of web page (HTML, PHP etc etc). This opens up the possibility to embed extremely rich content irrespective of the web stack or framework at the heart of your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubelly.com/2010/06/video-howto-creating-a-deep-zoom-with-high-res-regions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (User is logged in)
Database Caching using disk: basic
Object Caching 702/754 objects using disk: basic

Served from: www.ubelly.com @ 2012-02-09 09:17:26 -->
