Window Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 22 October 2008

Silverlight “Live” Streaming

Posted on 10:16 by Unknown

My friend Mayur Tendulkar called me yesterday and we decided to utilize some of our diwali vacation time spending on some Silverlight R&D. We both are frequent speakers in Community and always we deliver some sessions monthly. We decided to deliver some of those by means of Video,so Silverlight Streaming is what we conclude to be the good option.

So, I am now doing that and this post will explain you how simple video/xap can be uploaded and stream over internet, Thanks to Microsoft and Silverlight.live.com team for making life easy !!

Step 1 : Open http://silverlight.live.com/

Welcome

It is free and you will get around 10 GB of Hosting space as they claim. You just need to sign in with your Live/Hotmail/MSN id and rest will be taken care of.Once you sign in, you will get one Account ID and a complex long Account Key. You will also then able to see 3 options on left panel as Manage Account,Manage Application and Manage Videos as shown below.

ManageStream

Step 2 : Click on Manage Applications 

Once you click on Manage Applications,it will then ask you to enter application name, here I am giving sample name for test purpose,my code ahead will be on pre-created application.

It will also show you current/already created application with their size and one option as Upload an application to upload your xap.

ManageApplication

CreateNewApplication

Step 3 : Configure Application

Once you Create an application,by default it will show you three options as Upload Updated Application – This is in case if you had made any changes in application and re-builded it. Second option is Launch Application Test Page-This will launch application on Test page,this is just to cross-check whether application is working or not,and last option is Delete Application.

The application has a well formated Manifest,you will see this option with [Edit] link, click on that to configure it ahead.You will see following screen which will take all necessary information like Silverlight version and other few parameters like Frame Rate,Windowless mode etc.

ConfigAppV2

Once you click on Update, it will give you the previous screen where you will find several options with some code in <iframe> and javascript format which you can embed in your silverlight application and start doing streaming.

IFrame

ScriptnNamespace

Method 2 will help you to invoke a full fledge Server control inside your application. Some code will look like this :

1. With <iframe> in HTML Sample Page [ This is just sample Code might be different when you develop this because of change in URL]

<body>

<iframe src=http://silverlight.services.live.com/invoke/75985/WEDV/iframe.html scrolling="no" frameborder="0" style="width:500px; height:400px"></iframe>

</body> 

2. With xmlns and <script>

<head>

<script type="text/javascript" src="https://controls.services.live.com/scripts/base/v0.3/live.js"></script>
<script type="text/javascript" src="https://controls.services.live.com/scripts/base/v0.3/controls.js"></script>

<head>

<body>

<devlive:slscontrol silverlightVersion="2.0" src="/75985/TestApp/"></devlive:slscontrol>

</body>

So, that’s the end of it, just save application and Run, Your first Silverlight “Live” Streaming application is ready !! For more information on Silverlight “Live” Streaming visit at :

http://silverlight.live.com

Hope, this will be useful for you for your media centric applications,let me know your feedback.Thanks.

Vikram.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • First Windows Phone 7 update February 2011 - Small update but Big start
    After tons of rumors and set of predictions on Windows Phone 7 all over Internet, Microsoft came up with first Windows Phone 7 minor update ...
  • The little Story of “I Unlock Joy” event by Microsoft and Pune User Group
      This post is about recent “I Unlock Joy” event happened in Pune which was conducted by Microsoft and Pune User Group. Little History : ...
  • Silverlight On Mobile : Windows Phone 7 Splash Screen and Customization
    After talking about 3D capabilities on Windows Phone 7 using Silverlight in last article , Now I am moving ahead with small but equally impo...
  • Silverlight 5 : Platform Invoke (PInvoke) in Silverlight
      Two days back Microsoft announced availability of Silverlight 5 RC,I encourage you to download bits from here , My friend Pete Brown alr...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 1
    After a long..I am writing blog, I hope and I wish I will resume blogging like I use to in past. Lots of things happened in past few months....
  • MCTS : Microsoft Silverlight 4 Development Exam Guide (70-506) by Packt Publishing
      Hello, After a long time I got chance to come back here.I will soon resume blogging in month of August. Last 4-5 months were horrible due...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 2
    Hope you enjoyed my last article on Speech Capability in Windows Phone 8, Today I am posting another part or you can say little extension t...
  • Silverlight 3 : Insert & Update Data using WCF Service with DataForm and DataGrid
    In my Lap around Silverlight 3 series, I have written a separate article on DataForm in Silverlight 3, This article is a basic extension to ...
  • Mango : Using DeviceStatus in Windows Phone 7.1
    First of all “Thank You” for your wonderful response and comments on my last article on Silverlight Vs HTML5 ,I hope you like the points I ...
  • Silverlight, HTML5 & Windows 8 : Where we are heading to ?
    This is not the post or yet another post on most happening debate of Silverlight and HTML5, This is just a visit to all of them to realize t...

Blog Archive

  • ►  2013 (4)
    • ►  August (1)
    • ►  April (3)
  • ►  2012 (4)
    • ►  July (1)
    • ►  March (2)
    • ►  January (1)
  • ►  2011 (24)
    • ►  December (1)
    • ►  September (4)
    • ►  August (2)
    • ►  July (1)
    • ►  June (4)
    • ►  May (3)
    • ►  April (3)
    • ►  March (1)
    • ►  February (4)
    • ►  January (1)
  • ►  2010 (21)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (2)
    • ►  August (4)
    • ►  July (5)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2009 (49)
    • ►  December (1)
    • ►  November (5)
    • ►  October (2)
    • ►  September (1)
    • ►  August (5)
    • ►  July (5)
    • ►  June (1)
    • ►  May (5)
    • ►  April (5)
    • ►  March (9)
    • ►  February (4)
    • ►  January (6)
  • ▼  2008 (43)
    • ►  December (3)
    • ►  November (9)
    • ▼  October (7)
      • Silverlight 2 Charts : Building Charts using Silve...
      • Windows Azure : Getting Started with Cloud – Part 1
      • Silverlight 2 : Download Contents on Demand
      • Silverlight “Live” Streaming
      • Silverlight 2 Grid with Silverlight Enabled WCF Se...
      • Silverlight 2 Grid : LINQ to SQL + WebService
      • Silverlight : “Truth” more than “Myth”…
    • ►  September (4)
    • ►  August (2)
    • ►  July (3)
    • ►  June (4)
    • ►  May (3)
    • ►  March (3)
    • ►  February (5)
Powered by Blogger.

About Me

Unknown
View my complete profile