Hosting Silverlight applications with Silverlight streaming
Overview
Silverlight Steaming is a free video in the Microsoft Live platform and a product for hosting Silverlight applications. At this year's MIX08 conference, Microsoft released the Beta version of Silverlight streaming, Silverlight streaming has the following main features:
1. Up to 10G of free space, only need a Windows Live ID can be free to apply up to 10G of storage space.
2. Support up to 105M applications, single application or video size can support up to 105M.
3. Support up to 1.4M of video stream, in the video stream support, Silverlight streaming also support up to 1.4m/bps, to provide users with a clearer video experience.
Publish Silverlight Application
Hosting your own Silverlight application is simple, and we just need to write a manifest.xml file and a compiled. xap file to be packaged into a. zip package and upload it. The simple manifest.xml format looks like this:
<SilverlightApp>
<version>2.0</version>
<source>SendEmailExample.xap</source>
<width>800</width>
<background>white</background>
<isWindowless>false</isWindowless>
</SilverlightApp& gt;
In addition, we can specify the onload and OnError event JavaScript handlers. For a detailed manifest.xml file configuration, you can refer to the Silverlight steaming SDK. After uploading, the Manifest.xml file can be configured online.
accessing Silverlight applications
After you successfully publish a Silverlight application, there are two ways to embed Silverlight into your application:
1. Using an IFRAME embedding
<iframe
src="http://silverlight.services.live.com/invoke/40565/MySilverlight/i frame.html"
scrolling="no" frameborder="0"
style="width:800px; height:500px">
</iframe>
2. Embed with live control
<title>My Silverlight Application</title>
<script type="text/javascript"
src="https://controls.services.live.com/scripts/base/v0.3/live.js"/> ;
<script type="text/javascript"
src="https://controls.services.live.com/scripts/base/v0.3/controls.js" />
<body>
<devlive:slscontrol silverlightVersion="2.0" src="/40565/MySilverlight/">
</devlive:slscontrol>
</body>
When an application is published, Silverlight streaming generates the above code as long as it is copied to the application.