Learning Silverlight 2 Series (34)

Source: Internet
Author: User
Tags hosting silverlight

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.