This project is read-only.

SMFv1.1 Getting Started Guide

What is the Silverlight Media Framework 1.1 (SMFv1.1)

The Silverlight Media Framework is a packaged solution for building video players that take advantage of IIS Smooth Streaming. The solution is comprised of 4 assemblies:
  • Microsoft.SilverlightMediaFramework - Contains useful utility classes.
  • Microsoft.SilverlightMediaFramework.Player - Contains the video player and supporting controls and visual elements.
  • Microsoft.SilverlightMediaFramework.Data - Contains utilities that simplify the retrieval of external data.
  • Microsoft.SilverlightMediaFramework.Logging - Contains a shared messaging framework.

Implementing Progressive Download

The steps for implementing a player that uses Progressive Download are the same as described below, except for the XAML used to instantiate the Player. Instead of setting the SmoothStreamingSource property set the Source property.
<UserControl x:Class="SMF.HowTo.Example.MainPage"
    xmlns:p="clr-namespace:Microsoft.SilverlightMediaFramework.Player;assembly=Microsoft.SilverlightMediaFramework.Player"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <p:Player>
            <p:CoreSmoothStreamingMediaElement
                AutoPlay="True"
                Source="http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest"
                />
        </p:Player>
    </Grid>
</UserControl>


How-To Wire up a SMF Video Player

  • Download the SMF Binaries here.
  • Download the IIS Smooth Streaming Player Development Kit here.
  • Create a new Silverlight Application
CreateNewProject.png
  • Add the SMF references to your application
    • Microsoft.SilverlightMediaFramework.dll
    • Microsoft.SilverlightMediaFramework.Player.dll
    • Microsoft.SilverlightMediaFramework.Logging.dll
    • Microsoft.Web.Media.SmoothStreaming.dll
AddSMFReferences.png
  • Add namespace reference to MainPage.xaml
<UserControl x:Class="SMF.HowTo.Example.MainPage"
    xmlns:p="clr-namespace:Microsoft.SilverlightMediaFramework.Player;assembly=Microsoft.SilverlightMediaFramework.Player"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
  </Grid>
</UserControl>
  • Add Player XAML to MainPage.xaml
<UserControl x:Class="SMF.HowTo.Example.MainPage"
    xmlns:p="clr-namespace:Microsoft.SilverlightMediaFramework.Player;assembly=Microsoft.SilverlightMediaFramework.Player"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <p:Player>
            <p:CoreSmoothStreamingMediaElement
                AutoPlay="True"
                SmoothStreamingSource="http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest"
                />
        </p:Player>
    </Grid>
</UserControl>
  • Run the project and enjoy your smooth streaming video!
RunTheProject.png

Architecture Diagram

Cannot resolve image macro, invalid image name or id.

Last edited Jul 7, 2010 at 11:02 PM by mdowney, version 4

Comments

No comments yet.