PC Review

Thread Tools Rate Thread

WPF MediaElement Resume jumps video backwards

Posts: n/a
      10th Nov 2008

I have a strange problem with Pause and Resume using a

I implemented a MediaElement to display a video and implemented a GUI
around it to make the typical Start/Stop/Pause/Resume functionality

For one particular video I work with the clock.Controller.Resume()
function causes the clock to jump back several seconds (or frames?)
first and then starting to play the video from that position. This is
quite a nuisance because I am trying to keep the video synchronized
with another video that I restart at the same time (and which doesn't
jump backwards first). Is there anything that could explain this

My pause/resume code is quite trivial. Here an excerpt:

public void PauseResume()
MediaClock clock = mediaElement.Clock;

if (clock != null)
if (clock.IsPaused)

If anyone has ideas as to why this could be happening, I'd be very
(Would it be possible that is has to do with the way the video is
encoded? Keyframe? etc.?)

Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WPF, MediaElement and the Enhanced Video Renderer Kjetil Viggen Microsoft Dot NET Framework 0 21st Aug 2009 02:00 PM
MediaElement renderred to slow and with 'sort of codec problem' Piotrekk Microsoft C# .NET 0 28th Sep 2007 02:08 PM
MediaElement renderred to slow and with 'sort of codec problem' Piotrekk Microsoft C# .NET 0 28th Sep 2007 02:05 PM
MediaElement video quality worse than WMP Piotrekk Microsoft C# .NET 0 28th Sep 2007 02:02 PM
MediaElement breaks after scrubbing =?Utf-8?B?UmFsZiBaaWxsZXI=?= Microsoft Dot NET Framework 0 23rd May 2007 04:36 PM




All times are GMT +1. The time now is 09:16 PM.