Search

SMF v2 Getting Started Guide

Notes:

  • If you have installed SMF using the Setup.exe package found on the MS Download Center your .dll's will be located at: %Program files%\Microsoft SDKs\Microsoft Silverlight Media Framework\v2.2\Silverlight\bin
  • Windows Phone compatible .dll's will be located at: %Program files%\Microsoft SDKs\Microsoft Silverlight Media Framework\v2.2\Silverlight for Windows Phone\bin
  • If you are working with SMFv1.1 you can find the "Getting Started" guide here.

Check out the SMF "How To" Documentation for videos, online examples, sample code and more!

Download the Plugin Developer Guide here

Download the API docs here

  • YOU MAY NEED TO "UNBLOCK" THE .CHM FILE. JUST RIGHT-CLICK, SELECT "PROPERTIES", AND CLICK "UNBLOCK"

Building a Progressive Download Player

Step 1. File -> New Silverlight Application

Step 2. Add references:
  • Microsoft.SilverlightMediaFramework.Core.dll
  • Microsoft.SilverlightMediaFramework.Plugins.dll
  • Microsoft.SilverlightMediaFramework.Plugins.Progressive.dll
  • Microsoft.SilverlightMediaFramework.Utilities.dll

Step 3. Add XAML namespaces:
xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core" 
xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core" 


Step 4. Add Player XAML:
<Core:SMFPlayer>
   <Core:SMFPlayer.Playlist>
      <Media:PlaylistItem MediaSource="http://smf.vertigo.com/videos/wildlife.wmv"/>
   </Core:SMFPlayer.Playlist>
</Core:SMFPlayer>

ProgressivePlayer.png


Building a Smooth Streaming Player

Step 1. File -> New Silverlight Application

Step 2. Add references:
  • Microsoft.SilverlightMediaFramework.Core.dll
  • Microsoft.SilverlightMediaFramework.Plugins.dll
  • Microsoft.SilverlightMediaFramework.Plugins.SmoothStreaming.dll
  • Microsoft.SilverlightMediaFramework.Utilities.dll
  • Microsoft.Web.Media.SmoothStreaming.dll Download Smooth Streaming Player Development Kit.

Step 3. Add XAML namespaces:
xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core" 
xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core" 


Step 4. Add Player XAML:
<Core:SMFPlayer>
   <Core:SMFPlayer.Playlist>
      <Media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest"/>
   </Core:SMFPlayer.Playlist>
</Core:SMFPlayer>

SmoothStreamingPlayer.png



Building a Windows Phone Player

Step 1. File -> New Windows Phone Application

Step 2. Change the MainPage's SupportedOrientations property to Landscape

Step 3. Add references:
  • Microsoft.SilverlightMediaFramework.Compatibility.Phone.dll
  • Microsoft.SilverlightMediaFramework.Core.Phone.dll
  • Microsoft.SilverlightMediaFramework.Plugins.Phone.dll
  • Microsoft.SilverlightMediaFramework.Plugins.Progressive.Phone.dll
  • Microsoft.SilverlightMediaFramework.Plugins.SmoothStreaming.Phone.dll
  • Microsoft.SilverlightMediaFramework.Utilities.Phone.dll
  • Microsoft.Web.Media.SmoothStreaming.dll Download Smooth Streaming Player Development Kit.

Step 4. Add XAML namespaces:
xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core.Phone" 
xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core.Phone"  


Step 5. Add Player XAML:
<Core:SMFPlayer>
    <Core:SMFPlayer.Playlist>
        <Media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://ecn.channel9.msdn.com/o9/content/smf/smoothcontent/bbbwp7/big buck bunny.ism/manifest"/>
    </Core:SMFPlayer.Playlist>
</Core:SMFPlayer>

WindowsPhonePlayer.png
Last edited Oct 5 2010 at 1:14 AM by krohling, version 19
Comments
rbenayon Jan 12 at 7:58 PM 
how can add the URL of media in a parameter? (I see samples with initParams) but have any step by step in silverlight, (same that this sample)..

Jegadish Oct 24 2011 at 4:08 PM 
Hii, Following the steps (Building a Smooth Streaming Player), I got it to play a VOD content. But a LIVE manifest as MediaSource, failed to play. What modifications has to be made in the XAML to make it play a live content.

Thanks

xiaomuxixu Apr 23 2011 at 3:53 AM 
[url=http://www.pandora-charms.ca/]pandora canada[/url]

[url=http://www.linksoflondon-uk.co.uk/]links of london friendship bracelets[/url]

[url=http://www.thomassabo-shops.com/]Thomas Sabo Charms[/url]

[url=http://www.levelrosettastone.com/]Rosetta Stone Levels[/url]

[url=http://www.drdrebeatshop.com/]beats headphones[/url]



Great sources for fashion news and fashion articles. It's got offered many details about the relevant information. I enjoy this post quite definitely and i'm gonna recommend it to my buddies. Brief and practical methods within the post save your time and inside searching process. It can be this kind of awesome source or technique that we can't wait to attempt it. The post is completely incredible. Many thanks for all you could posted and all you give us!
4

willzhan Apr 15 2011 at 3:13 PM 
To answer iDaZhao's question: add a PlaylistItem pointing to the local media, then add this PlaylistItem to the Playlist. Then play the PlaylistItem. Here is the full code:
OpenFileDialog objOpenFileDialog = new OpenFileDialog();
bool? dialog = objOpenFileDialog.ShowDialog();
if (dialog.Value)
{
PlaylistItem playlistItem = new PlaylistItem();
playlistItem.StreamSource = objOpenFileDialog.File.OpenRead();
playlistItem.Title = "Local media file";
player.Playlist.Insert(0, playlistItem); //insert at beginning of existing playlist
player.GoToPlaylistItem(playlistItem); //play the new playlistitem
}

iDazhao Mar 1 2011 at 3:47 AM 
how can I add the local mediasource?
I write mediasource="vedio/wildlife.wmv", but it does not work?

Best Regards,
David

valse Feb 17 2011 at 4:09 PM 
@dgaust: OMG :-)

dgaust Feb 14 2011 at 10:48 AM 
adenove & valse, try setting VolumeLevel="1" in the xaml of SMFPlayer.

adenova Jan 31 2011 at 11:41 AM 
We have the same problem : no sound with Windows Phone 7 :(

valse Jan 28 2011 at 3:42 PM 
Hi all... I tried the windows phone 7 example but the player is mute... both on emulator and on the phone

diekus Jan 4 2011 at 6:14 AM 
@giss68 you should point it to the manifest file, instead of a wmv

giss68 Dec 3 2010 at 1:53 PM 
Can this be apply to homeserver
I have tried to change the mediasource="https://myservername.homeserver/videos/wild.wmv but is not playing anyhelp

LuisFaustino Oct 4 2010 at 6:34 PM 
Hi
Where can one find a list of the formats and codec's supported by SMF v2?

Thanks
Luis

Anjalo Aug 13 2010 at 1:33 AM 
Thanks, it was good to find something that actually worked! Very good and simple example of what can be done.

Tony

Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.2.7.18398