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 12:14 AM by krohling, version 19

Comments

srk2k14 Sep 4 at 2:52 PM 
Will it work or will play m3u8 live streams on windows phone. Iam building a WP streaming app for wp 7 and 7.1 Iam using Windows 8 OS , VS 2012 profesional and 2012 for Wp.

Please guide me.

Where is the exact path of the Download Smooth Streaming Player Development Kit. for dll's.

ahmedjawed Jul 16, 2013 at 1:45 PM 
I want to do real time live streaming, can anybody helps plz???

ahmedjawed Jul 15, 2013 at 3:29 PM 
How to display fullscreen and volume controlls??any help plzzz

ahmedjawed Jul 15, 2013 at 3:28 PM 
How to display fullscreen and volume controlls??any help plzzz

ahmedjawed Jul 15, 2013 at 3:25 PM 
How to display fullscreen and volume controlls??any help plzzz

ahmedjawed Jul 15, 2013 at 1:51 PM 
How to display full screen and volume control button??any help plzzzz

VasylVuy Jun 3, 2013 at 12:25 PM 
Does SMF for silverlight support SMPTE-TT subtitles. If not, is there approximate date when it will?

PeterB Apr 2, 2013 at 2:11 AM 
I have followed these instructions but the smooth streaming video doesn't play - it just reports 00:00:00. The video (encoded in VC1 with IIS Transform Manager) itself works find when I browse to it and use the Default.html file.

Yashavantha Nov 19, 2012 at 5:01 AM 
hi i am developing an app in which .. i would like to stream videos from url ..how can i do this..? i tried @willzhan mentioned but didn work... i also tried like giss68 it didn work

hamishtushar Nov 6, 2012 at 6:51 PM 
I have a live stream and I can see the seektoLive button displayed when the stream begins to play. I have a DVR kind of application and when i go back in the past the seektolive button sometime dis appears and sometimes shows up,When it shows up I can see thing work.But when it doesnt show I can only play from past up to the time when i moved back and then it stops.Do i need to implement something to have this feature

DeanTW260 Nov 4, 2012 at 4:22 PM 
Hi, I have a little question.
I have been fellow above step,but i can't play video on silverlight player.
I can't find out the file in playlist.
If somebody can give me helpful suggestion,
please contact me.
This is my E-Mail: c8c8_5j@hotmail.com
Thanks a lot,
Dean

cdinesh1 Aug 17, 2012 at 3:43 AM 
How do i handle the WP7 back button in SMF player ?
Known issues says that i cannot stop the Live stream.
If we hit the back button, how do i make sure that when i come back to the page i continue the live stream from where i left ?
I have made use of the onNavigateFrom and onNavigateTo methods in WP7.

in OnNavigateFrom , i have got the Current Stream Point and paused the player,
in OnNavigateTo method , i have made use otf the current Stream Point and made the player to seek to that point. But it does not seem to work .

Any suggestions ?

Birbilis Jun 9, 2012 at 4:24 PM 
please remove the spam from xiaomuxixu and kick that user out of Codeplex

waghekapil May 19, 2012 at 9:50 AM 
Hi,

Its really a great effort.

Kapil

Birbilis Apr 3, 2012 at 11:49 AM 
please remove spam comment by "xiaomuxixu" and kick him out of Codeplex (removing all his comments from other projects if they're spam too)

rbenayon Jan 12, 2012 at 6: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 3: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 2: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 2: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 2: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 3:09 PM 
@dgaust: OMG :-)

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

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

valse Jan 28, 2011 at 2: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 5:14 AM 
@giss68 you should point it to the manifest file, instead of a wmv

giss68 Dec 3, 2010 at 12: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 5: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 12:33 AM 
Thanks, it was good to find something that actually worked! Very good and simple example of what can be done.

Tony