mediaelement

mediaelement source resizing

msdn said that it is best to re-encode the media to the desired size using a media encoding tool if i wanna resize the media. however i can't leave the mediaelement without setting it's width and hight but there must be an workaround ...

Windows Phone 7 Global UI Element?

Hi, I'm trying to add a Global UIElement in my Windows Phone 7 app (ie. a UIElement that is shared across all pages) Specifically, I'm trying to get the MediaElement to continue playing when I navigate to different pages. I've tried playing with the Application.RootVisual / PhoneApplicationFrame but I can't seem to get it to work Any...

MediaElement/MediaPlayer/MediaUriElement hangs UI thread while loading a video

hey, i've got a wpf application that have a doubleanimation used for scrolling text and images (scrollbar) from the left side of the screen, to the right, and a movie playing, in the same window. everytime a video ends, and a new video loads, the doubleanimation get stuck/hangs for a second, then it continues normally. i assume it's the...

Can't change MediaTimeline's RepeatBehavior after it's started?

I'm running a MediaElement using MediaTimeline and MediaClock. However, when I change the RepeatBehavior after it's started it has no effect, I.e. When set to RepeatBehavior.Forever and Begin(), changing to RepeatBehavior(1) has no effect - the timeline continues forever. Likewise if the timeline is set to RepeatBehavior(1) changing it t...

Wpf Mediaelement and .m4a files, SpeedRatio not working?

Hi, Im working with a simple mediaplayer based on this msdn example where the user can control volume, playback speed (SpeedRatio) and seek (position) using 3 sliders. Everything works correctly when I play .mp3 files, but as soon as I play an .m4a file the song playback speed, controlled by the MediaElement.SpeedRatio, is ignored. Vol...

Record Silverlight 4 MediaElement content.

At the moment I'm working on a project. Which contains streaming from an IP camera to the Silverlight 4 MediaElement. The stream that goes through the MediaElement, needs to be cut when a button is clicked. So is it possible to record MediaElement's content on demand? When that's done, write the recorded part of MediaElement to disk. If...

Save MediaElement file source to isolated storage

With a MediaElement using an external source -- is it possible to play an mp3 while it's downloading, and then when it's finished downloading, save it to isolated storage for future use? If not, what's the best way to accomplish this? ...

How do I prevent subtitles from showing up on my MediaElement?

Hi all. I'm trying to create my own Media Player application using a WPF MediaElement. I know that the MediaElement actually uses Windows Media Player as its source and that's why it also loads the .srt (subtitle) file and shows subtitles below the video. My application is actually supposed to override default subtitle rendering and sho...

WPF Play MediaElement in UserControl using only XAML

Hi, I have this UserControl: <UserControl x:Class="Jugues.contacteButton" x:Name="contacteButtonControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ...

Binding a progressbar to a mediaelement in wpf

In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement. I tried it with the following xaml: <Window x:Class="TestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/...