WPF MediaElement pauses when trying to play Windows Media Center recording

Posted by eborlas on Stack Overflow See other posts from Stack Overflow or by eborlas
Published on 2010-04-22T18:04:23Z Indexed on 2010/05/14 23:34 UTC
Read the original article Hit count: 295

I have an WPF application that starts a live tv recording using Windows Media Center, using the Windows Media Center SDK, waits 2 minutes and then plays the currently recording file (.wtv) in a WPF MediaElement. The problem is that the video visual will freeze and it is not consistent on when it happens. I have looked into it and discovered that the timeline is still moving so the MediaElement still thinks that the video is playing.

This happens only when trying to play a video file that is currently being recorded, previously recorded shows play just fine. Both Media Center and Media Player can play those files without any hiccups; it is only the WPF MediaElement that has this problem. Any help would be appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf