SMF Player not playing wmv files

Jan 5, 2012 at 3:58 AM
Edited Jan 5, 2012 at 4:07 AM

Hello:

I am trying to have a smf player play a WMV File.  I am running VS 2010 Web Developer. When I compile it, I see the player but nothing happens.

Here are the refrences I am using

Microsoft.SilverlightMediaFramework.Core.dll
Microsoft.SilverlightMediaFramework.Plugins.dll
Microsoft.SilverlightMediaFramework.Plugins.Progressive.dll
Microsoft.SilverlightMediaFramework.Utilities.dll
Microsoft.SilverlightMediaFramework.Plugins.SmoothStreaming.dll

Here is the code.

<UserControl xmlns:smf="http://schemas.microsoft.com/smf/2010/xaml/player"
    x:Class="WIT.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core"
    xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="768">

    <Grid x:Name="LayoutRoot">
        <Grid>
            <Core:SMFPlayer x:Name="player" Grid.Row="0"  AutoPlay="True" AutoLoad="True" PlaylistVisibility="Disabled" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Core:SMFPlayer.Playlist >
                    <Media:PlaylistItem MediaSource="http://smf.vertigo.com/videos/wildlife.wmv"/>
                </Core:SMFPlayer.Playlist>
            </Core:SMFPlayer>

        </Grid>
    </Grid> 


Jan 5, 2012 at 10:30 AM

Try this one:

 <Media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://smf.vertigo.com/videos/wildlife.wmv"/>

Jan 5, 2012 at 10:54 AM

Shouldnt that deliverymethod be Progressive? Its not like the WMV files support adaptivestreaming.

Jan 5, 2012 at 11:14 AM
Edited Jan 5, 2012 at 11:15 AM

Neither one works. The same thing happens, the player loads but nothing plays.

Jan 5, 2012 at 3:07 PM

Try turning on logging to see what happens.

Coordinator
Jan 5, 2012 at 3:33 PM

As lokexstream suggested, you can turn on logging by setting LogLevel="All" LoggingConsoleVisibility="Visible".

Also, are you using SL4 or SL5?

Regards, Tim

Jan 5, 2012 at 4:53 PM

I cross posted this question in the Silverlight Forum and it was determined that there is a bug that prevents a video from playing in Silverlight 5 using Microsoft Media Platform v2.6. The video plays fine in Silverlight 4.

Here is the link to the thread:

http://forums.silverlight.net/p/246249/616516.aspx/1?Re+SMFPlayer+Error