Freigeben über


Silverlight Streaming

After working with a few sample Silverlight applications I became curious to see how a silverlight application with videos and/or images would look like over the Internet. Fortunately I was able to deploy a sample application (Silverlight Surface) using the service provided by Microsoft Silverlight Streaming by Windows Live without having to set up my own web server. Once I signed in with my Passport account I was able to follow the steps outlined at the site and view the application over the Internet via Silverlight Streaming.

To make it easy to view the application, I moved one javascript block from a separate file to the html file. See the testing page and html code below. If you have worked with Silverlight, I encourage that you try Silverlight Streaming. I am amazed with the result, and hope you do too. 

 

Sample Test Page for a Silverlight Stream Application 

<html> 

<script type="text/javascript" src="https://agappdom.net/g/silverlight.js"></script>
<script type="text/javascript">
function CreateSilverlight(){Sys.Silverlight.createHostedObjectEx({source: "streaming:/15903/silverlightsurface",parentElement: silverlightsurfaceWrapper});}
</script>

Web Page Content Goes Here...

<div id="silverlightsurfaceWrapper" style="width:800px; height:600px; overflow:hidden;"></div>
<script type="text/javascript">
var silverlightsurfaceWrapper = document.getElementById("silverlightsurfaceWrapper");
CreateSilverlight();
</script>

</html>

Sample manifest.xml file: 

<SilverlightApp>   
<source>Page.xaml</source>   
<width>800</width>   
<height>600</height>   
  
<jsOrder>       
<js>Silverlight.js</js>       
<js>Default.html.js</js>

</jsOrder>
</SilverlightApp>

Comments