当使用多个WPF时,WPF中介会失败吗? [英] WPF mediaelement fails when using more than one?
本文介绍了当使用多个WPF时,WPF中介会失败吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am using two WPF Mediaelements on a WPF window side by side, to run two different h.264 videos. After a while (3-10 minutes), only a black screen appears on both Mediaelements. There are no errors. The media_failed event doesn's fire and the application still runs.
该应用程序正在使用.NET 4.5.
The application is using .NET 4.5.
有人知道为什么会这样吗?
Does someone know why it happens?
谢谢
推荐答案
Mediaelement是媒体播放器的包装.
Mediaelement is a wrapper around media player.
您一次只能运行很多,如此处所述:
You can only run so many at a time, as explained here:
Are you running any other instances of mediaelement / media player?
这篇关于当使用多个WPF时,WPF中介会失败吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文