2

I'm having a problem with creating 24/7 video player for my application on WPF and .NET Framework 4.0. Application shall run on kiosk and displays video clips from my playlist in a loop.

The problem is that after about 8 - 24 hours of continues playback the video frame freezes. Application does not raise any exception and continue work in normal mode: sound from video is played, video files are changed but the screen does not change. I have been tried WPF MediaElement control and WPFMediaKit MediaUrlElement. All tests have been done on Windows 7 (x32 and x64).

I have been tried play my playlist in a Windows Media Player 11 and it does not freeze after a few days of playback.

I have been using media files with different codec (mp4 H.263, .flv, .avi, .mkv, .wmv). I’m using K-Lite Codec Pack Standard on all machines. Does anybody know what the problem with video renderer in Windows 7 or Framework .NET 4.0 and how to find workaround for it?

4

2 回答 2

0

您可以尝试清除并重新将源分配给媒体元素,或者在每次播放列表到达开始时创建一个新的媒体元素,而不是在循环中连续播放播放列表。

我意识到这并不能解决问题的根本原因,但它可能是一个可行的解决方法。

于 2010-09-13T08:59:55.273 回答
0

昨天我从我的机器上删除了 K-Lite 编解码器包并安装了 ffsshow + Haali Matroska Splitter 并运行另一个测试。该测试已经运行了大约 25 小时,没有任何视频问题。所以,希望这是编解码器的问题,我的测试将在几天后工作。

于 2010-09-14T09:46:40.680 回答