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 PlayerStep 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>
Building a Smooth Streaming PlayerStep 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>
Building a Windows Phone PlayerStep 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>