MediaElement.Stop doesn't work when playing a live streaming source in windows store app

I want to make a Windows Store App play a live-streaming source. The source plays fine but I can't stop the source from playing once it has begun. When I call Stop() on the instance of Windows.UI.Xaml.Controls.MediaElement nothing happens.

Below is my code:

public MainPage(){
    this.mediaplayer.AutoPlay = true;
    this.mediaplayer.Source = new Uri("mms://somedomain/mylive");
void StopButton_Click(object sender, RoutedEventArgs e)
    //I can reach here when I set a breakpoint


I just came across the same problem... and was able to solve it by calling MediaElement.Pause() instead.

Need Your Help

receive notifications using NSNotificationCenter

iphone ios ios4 nsnotifications

Is it possible to receive notifications using NSNotificationCenter when my app is running in background if I set the plist key "Required background modes" to the value "App plays voip" ?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.