<?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>Progressive Digressive &#187; silverlight</title>
	<atom:link href="http://www.marcuswhitworth.com/tag/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcuswhitworth.com</link>
	<description>Marcus Whitworth&#039;s tech blog – .NET, C#, Silverlight, WPF, Flex…etc, etc</description>
	<lastBuildDate>Wed, 14 Dec 2011 16:14:08 +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>Is Silverlight overtaking both Flex and AIR?</title>
		<link>http://www.marcuswhitworth.com/2009/11/is-silverlight-overtaking-both-flex-and-air/</link>
		<comments>http://www.marcuswhitworth.com/2009/11/is-silverlight-overtaking-both-flex-and-air/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:53:05 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Comparisons]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.marcuswhitworth.com/?p=101</guid>
		<description><![CDATA[Reading the feature list of the upcoming Silverlight 4 release (now in beta), I am more than a bit impressed.  Up to now, there has been a few glaring features by which Silverlight was trailing behind Flex &#8211; camera/mic input; &#8230; <a href="http://www.marcuswhitworth.com/2009/11/is-silverlight-overtaking-both-flex-and-air/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Reading <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx" target="_blank">the feature list</a> of the upcoming Silverlight 4 release (now in beta), I am more than a bit impressed.  Up to now, there has been a few glaring features by which Silverlight was trailing behind Flex &#8211; camera/mic input; printing; clipboard access; and right-to-left text being ones that spring to mind.  Admittedly, all of these are fairly niche features which most applications wouldn&#8217;t require.</p>
<p>Silverlight 4 not only brings in all these features, but also a pile of others.  Interestingly, they seem to be making a direct pitch against Adobe AIR with many of the features.  The new Elevated Trust Applications feature (for out-of-browser apps), enables a host of features typically reserved for desktop applications: <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#localfiles" target="_blank">Local file access</a>; <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#toast" target="_blank">Notifications API</a>; <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#fullscreen" target="_blank">Full-screen full-keyboard access</a>; <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#xdomain" target="_blank">Cross-domain policy-free networking</a>; and <a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#droptarget" target="_blank">Drop targets</a>.  Of course, features aside, the huge advantage of the Silverlight desktop approach over AIR is that there is only one runtime plugin required.</p>
<p>At the speed Microsoft is moving forward with Silverlight, Adobe is going to have to start seriously upping their commitment to the Flash platform if they want to stay at the top of the game.  Up to now, they could always give the argument of Flex being more feature-rich, and the ease of adaptation to the desktop with AIR &#8211; with both of these arguments now void, and Microsoft firmly remaining miles ahead in the developer tooling scene, Adobe&#8217;s work is cut out.  They still have greater marketplace penetration with Flash player, but that lead is only going to narrow also.</p>
<p>You&#8217;ve got to love competition!</p>
<div class="shr-publisher-101"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F11%2Fis-silverlight-overtaking-both-flex-and-air%2F' data-shr_title='Is+Silverlight+overtaking+both+Flex+and+AIR%3F'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F11%2Fis-silverlight-overtaking-both-flex-and-air%2F' data-shr_title='Is+Silverlight+overtaking+both+Flex+and+AIR%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.marcuswhitworth.com/2009/11/is-silverlight-overtaking-both-flex-and-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight tools for the Mac</title>
		<link>http://www.marcuswhitworth.com/2009/10/silverlight-tools-for-the-mac/</link>
		<comments>http://www.marcuswhitworth.com/2009/10/silverlight-tools-for-the-mac/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:48:00 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.marcuswhitworth.com/?p=99</guid>
		<description><![CDATA[Just reading about the efforts to produce an Eclipse-based Silverlight development platform for the Mac &#8211; quite cool. I have to think though, perhaps the effort would have been better spent creating a port of Blend for the Mac&#8230; it &#8230; <a href="http://www.marcuswhitworth.com/2009/10/silverlight-tools-for-the-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Just reading about <a href="http://team.silverlight.net/announcement/eclipse-tools-for-silverlight-now-available/" target="_blank">the efforts to produce an Eclipse-based Silverlight development platform</a> for the Mac &#8211; quite cool.</p>
<p>I have to think though, perhaps the effort would have been better spent creating a port of Blend for the Mac&#8230; it seems to me that only a <em>tiny</em> minority of developers would opt for Eclipse over Visual Studio; whereas I&#8217;d guess nearly all designers <a href="http://forums.silverlight.net/forums/t/34817.aspx" target="_blank">would prefer to work natively</a> within MacOS.</p>
<p>I can kind of understand why they&#8217;ve done it, but I can only hope there&#8217;s another project underway with that Blend port&#8230;</p>
<div class="shr-publisher-99"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F10%2Fsilverlight-tools-for-the-mac%2F' data-shr_title='Silverlight+tools+for+the+Mac'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F10%2Fsilverlight-tools-for-the-mac%2F' data-shr_title='Silverlight+tools+for+the+Mac'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.marcuswhitworth.com/2009/10/silverlight-tools-for-the-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a custom Silverlight 3 Smooth Streaming player</title>
		<link>http://www.marcuswhitworth.com/2009/09/creating-a-custom-silverlight-3-smooth-streaming-player/</link>
		<comments>http://www.marcuswhitworth.com/2009/09/creating-a-custom-silverlight-3-smooth-streaming-player/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 18:36:39 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.marcuswhitworth.com/?p=64</guid>
		<description><![CDATA[When it comes to video delivery, I come from a Flash background.  I&#8217;ve worked on numerous streaming video projects over the years, all of which were created with Flash &#38; Actionscript on the client side. Having been through the process &#8230; <a href="http://www.marcuswhitworth.com/2009/09/creating-a-custom-silverlight-3-smooth-streaming-player/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When it comes to video delivery, I come from a Flash background.  I&#8217;ve worked on numerous streaming video projects over the years, all of which were created with Flash &amp; Actionscript on the client side. Having been through the process several times, I know all the hurdles I&#8217;m going to have to clear well in advance.</p>
<p>Documentation for coding a Silverlight 3 player against IIS Smooth Streaming is a little sparse.  IIS.net has several articles on the server setup, but I couldn&#8217;t find anywhere obvious regarding the client connection.</p>
<p>Unlike progressive video playback, you can&#8217;t just point the MediaElement.source at the video path then call play().  After a bit of searching, <a href="http://chris.59north.com/post/Playing-Smooth-Streaming-videos-in-Silverlight.aspx" target="_blank">most people were talking about</a> some <em>AdaptiveStreamingSource</em> class, which isn&#8217;t available in the base SL toolkit, but rather only found in <em>SmoothStreaming.dll</em> within the template players generated from Expression Encoder!</p>
<p>Per <a href="http://forums.silverlight.net/forums/t/121952.aspx" target="_blank">some handy forum posts</a>, the steps required are:</p>
<ol>
<li>With Expression Encoder installed, go to <em>C:\Program Files\Microsoft Expression\Encoder 3\Templates\en</em>, select any template, and copy the SmoothStreaming.xap file.</li>
<li>Rename your copied .xap file to .zip, unzip, and take out the <em>SmoothStreaming.dll</em> and <em>PlugInMssCtrl.dll</em> files.</li>
<li>Reference these assemblies in your project, and you can then start using <em>AdaptiveStreamingSource.</em></li>
</ol>
<p>So, once you can finally access the required assemblies, you can then invoke your IIS Smooth Streaming service with something along the lines of the following:</p>
<pre class="brush:csharp">var mediaPath = "testClip_h1080p.ism/manifest";
var source = new AdaptiveStreamingSource
{
   ManifestUrl = new Uri(mediaPath, UriKind.RelativeOrAbsolute),
   MediaElement = streamElement // the xaml MediaElement
};
source.StartPlayback();</pre>
<p>Make sure you put the trailing &#8216;/manifest&#8217; after your stream path.</p>
<p>Simple enough, once you&#8217;ve figured out the basics!  Not exactly sure what MS were thinking by not including the SmoothStreaming assemblies in the SL3 toolkit?  Surely they realise not everyone wants to use a templated player.  Or have I missed something here?</p>
<div class="shr-publisher-64"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F09%2Fcreating-a-custom-silverlight-3-smooth-streaming-player%2F' data-shr_title='Creating+a+custom+Silverlight+3+Smooth+Streaming+player'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F09%2Fcreating-a-custom-silverlight-3-smooth-streaming-player%2F' data-shr_title='Creating+a+custom+Silverlight+3+Smooth+Streaming+player'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.marcuswhitworth.com/2009/09/creating-a-custom-silverlight-3-smooth-streaming-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Silverlight/xaml bug</title>
		<link>http://www.marcuswhitworth.com/2009/09/visual-studio-silverlight-xaml-bug/</link>
		<comments>http://www.marcuswhitworth.com/2009/09/visual-studio-silverlight-xaml-bug/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 17:45:42 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.marcuswhitworth.com/?p=60</guid>
		<description><![CDATA[This one was driving me crazy for at least a few hours.  On a fresh install of VS2008 &#38; Silverlight 3 tools, there was no xaml code highlighting at all, no intellisense, nothing &#8211; just like any ordinary text file.  &#8230; <a href="http://www.marcuswhitworth.com/2009/09/visual-studio-silverlight-xaml-bug/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This one was driving me crazy for at least a few hours.  On a fresh install of VS2008 &amp; Silverlight 3 tools, there was no xaml code highlighting at all, no intellisense, nothing &#8211; just like any ordinary text file.  Checking the same project on another machine, it was all fine.  So I starting disabling/uninstalling all VS plugins (ReSharper, AnkhSVN), but still no luck.  Was starting to think I&#8217;d have to reinstall VS&#8230;</p>
<p><a href="http://www.tipsdotnet.com/TechBlog.aspx?PageIndex=0&amp;BLID=12" target="_blank">The solution</a> was simple enough &#8211; run the VS Command Prompt, and enter:</p>
<pre>devenv /resetskippkgs</pre>
<p>Problem solved.  <a href="http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx" target="_blank">Apparently a good one to try</a> whenever you lose formatting or Intellisense features.</p>
<div class="shr-publisher-60"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F09%2Fvisual-studio-silverlight-xaml-bug%2F' data-shr_title='Visual+Studio+Silverlight%2Fxaml+bug'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.marcuswhitworth.com%2F2009%2F09%2Fvisual-studio-silverlight-xaml-bug%2F' data-shr_title='Visual+Studio+Silverlight%2Fxaml+bug'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.marcuswhitworth.com/2009/09/visual-studio-silverlight-xaml-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/19 queries in 0.004 seconds using disk: basic
Object Caching 840/869 objects using disk: basic

Served from: www.marcuswhitworth.com @ 2012-02-06 22:15:47 -->
