Note:

Find API documentation for SMFv2 RC here

SMF v2 Getting Started Guide

Note: If you have installed SMF using the Setup.exe package your .dll's will be located at: %Program files%\Microsoft SDKs\Microsoft Silverlight Media Framework\v2\bin

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

Last edited Jun 14, 2010 at 7:33 PM by mdowney, version 14

Comments

stevendavid Jun 28, 2010 at 5:38 AM 
Ok the issue is with my company network. once i tried the code from home everything worked great.

stevendavid Jun 26, 2010 at 7:20 PM 
I am able to play Smooth Streaming videos just fine with the microsoft-smf-src-2.2010.0610.1 code. i only have the issue above with the microsoft-smf-bin-2.2010.0610.1 code.

stevendavid Jun 24, 2010 at 10:12 PM 
i am having the same issue that ZeroG449 noted above; however, i am using microsoft-smf-bin-2.2010.0610.1 build. So I had to add the dlls to start with. Still i added and removed the dlls a few times to make sure, no luck.

i tried both http://server_name/path/publishing_point.isml/Manifest and the traditional http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest streams.

I do not see how to use the SmoothStreamingMediaElement with this version of the SMF.

Any ideas?

shrik Jun 20, 2010 at 4:28 PM 
Does someone knows how to Encode multiple Audio tracks for smooth streaming ??? (either by expression encoder or some other encoder..)

ZeroG449 Jun 18, 2010 at 6:55 PM 
i was able to get it to work properly. I think the problem was with my project. (2) things had to be done i believe. (1) i had to actually remove all my references from the project - related to SMFv2 AND the MS DLL for smoothstreaming. I then had to bring them back in and rebuild the project. For some reason VS2010 didn't appear to accept me just adding them. i had to drop them and then add them back and the compile. Very strange. But it is now working! And by the way, this rocks!!

krohling Jun 15, 2010 at 9:56 PM 
ZeroG449, fyi, I set up an EE4 Live Smooth Stream w/ an IIS publishing point and was able to play the media properly. I recommend double checking your environment setup.

krohling Jun 15, 2010 at 7:52 PM 
ZeroG449, have you tried using just the SmoothStreamingMediaElement to play back your stream? Are you receiving any error messages?

mdowney Jun 15, 2010 at 7:22 PM 
OK - it looks like we've followed up with your questions directly. Please let me know if you need any more help.

Mike

mdowney Jun 15, 2010 at 6:41 PM 
We're looking into these questions for you and will respond shortly. Thanks!

ZeroG449 Jun 14, 2010 at 7:41 PM 
I have tried the smoothstreaming example above, and it doesn't appear to work with EE4 Live Smooth Streaming. I use a path similar (and have verified the Publishing Point, etc is running properly)
<Core:SMFPlayer>
<Core:SMFPlayer.Playlist>
<Media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://server_name/path/publishing_point.isml/Manifest"/>
</Core:SMFPlayer.Playlist>
</Core:SMFPlayer>

I have verifed that browsing to this path the Manifest is being updated on the fly (Live). However the player won't play the contents.

What am i missing?

Thanks!

LyalinDotCom Jun 14, 2010 at 3:11 PM 
I added the player as in the first example to my SL4 application and it compiled / started without issue. I didnt do anything different then try to play the test video.

Once i loaded the page though that has the control on it i got this exception:

System.IO.FileNotFoundException occurred
Message=Could not find file 'PlayerId.txt'.
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
InnerException:


Any ideas?