December 25th, 2010, 04:55 AM
How to completely reset MediaElement?
I have to change source frequently, like below:
// Movie is a MediaElement in xaml, and loadbehavior is manual. all path are valid.
Movie.Source = new Uri(path, UriKind.Relative);
// in some place, just call ChangeMovie() at certain time, feeding different path.
Sometimes, MediaOpened is not fired at all, and movie can't be played after that, BufferingProgress is always 0. Why that happens?
In this situation, how can I completely reset the mediaelement?
thanks in advance!
Click Here to Expand Forum to Full Width