Browser crashes when trying to recreate example

Apr 28, 2010 at 7:04 AM

When I am trying to recreate the example you provided, my browsers, both Firefox and IE8 become unresponsive...

The preloader stops at about 80% and the only thing I can do is kill the browser's process...

I am using Windows Xp SP3, Firefox 3.6.3 (but this doesn't seem like a browser-specific issue to me), Expression Blend 4 and the Silverlight 4 SDK.




Apr 28, 2010 at 11:29 AM

Hi Jan,

I've got the same issue. It seems the CoreSmoothStreamingMediaElement is loaded after you try to feed the smooth streaming source. I've solved the problem populating the source in the MainPage C# code. Try to do that :

XAML File(MainPage.xaml) :


<UserControl x:Class="VideoPlayerLauncher.MainPage"
    xmlns:d="" xmlns:mc=""
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot" Background="White">
        <p:Player x:Name="ASVLiveBasicPlayer">
            <p:CoreSmoothStreamingMediaElement x:Name="CoreSSM"



In fact, I've just passed by the source feeding.


C# (MainPage.xaml.cs) :


using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.SilverlightMediaFramework.Player;
using Microsoft.Web.Media.SmoothStreaming;

namespace VideoPlayerLauncher
    public partial class MainPage : UserControl
        public MainPage()

            CoreSSM.Loaded += new RoutedEventHandler(CoreSSM_Loaded);

        void CoreSSM_Loaded(object sender, RoutedEventArgs e)
            Uri ssmSource = new Uri("", UriKind.RelativeOrAbsolute);
            CoreSSM.SmoothStreamingSource = ssmSource;

After initializing the MainPage, I've put an "Loaded" handler on the CoreSmoothStreamingMediaElement defined in the XAML code. In the function, I'm initializing a new Uri object and populating the smoothstreaming source using it.

Hope that will help you



Apr 28, 2010 at 1:08 PM

It works!!!

Thank you Emmanuel..

Made my day ;) 

Greetings, Jan

Apr 28, 2010 at 1:11 PM

You're welcome :)