I had a short video that I needed to share with family this weekend so I thought I'd try out the Silverlight streaming service that's currently free.
I started out with this guide Your Video to Silverlight Streaming 101 which seemed pretty straight forward. The first part is easy, get Expression Encoder installed and run the video content through that choosing a job output template. It looks like you can do it without Expression Encoder, but I had no idea how to format the control files required for Silverlight hosting.
The output from Expression Encoder includes the WMV file, a .XAML file (typically called player.xaml) and a series of .JS support files. Your next job is to create a Manifest.xml file which is a required part of the Silverlight hosting. Turns out this was a tricky part.
The guide I was following showed the contents of the Manifest.xml file. But what it showed would receive a non-descript error back from uploading to Silverlight streaming. Ouch.
Eventually I found this post showing the error and the fix. Here's the correct Manifest.xml that I had to use:
<SilverlightApp> <version>1.0</version> <loadFunction>StartWithParent</loadFunction> <jsOrder> <js>MicrosoftAjax.js</js> <js>Silverlight.js</js> <js>BasePlayer.js</js> <js>PlayerStrings.js</js> <js>player.js</js> <js>StartPlayer.js</js> </jsOrder></SilverlightApp>
Apparently the order of the .js files is extremely important to the Silverlight hosting server. Also notice that there's no mention of my .WMV file or my .XAML file. These are not required in the manifest. Though they are required in the .ZIP file you upload.
So now you just upload a .ZIP file containing all these to Silverlight streaming and you're done.
Wait, not done yet. No one can see it unless you create a web page to stream the video to. The Silverlight streaming server will show you three pieces of script.
So I created a simple default.htm and the CreateSilverlight.js and uploaded them to a new directory that my family can get to. Here's the simple Default.htm source:
I had a short video that I needed to share with family this weekend so I thought I'd try out the
I had a short video that I needed to share with family this weekend so I thought I'd try out the Silverlight