I am developing a WPF application (in .NET 4) which contains a lot of videos (40 videos, each video > 1 G) using the WPF media element. Unfortunate开发者_如何学编程ly, I cannot load more than 10 videos at a time. When I try to display more videos, a black screen appears where normally the video should be played.
Has anyone ever experienced such a problem and found a solution? It would help me a lot.
In the mean time, I found the solution: calling 'close' on a mediaelement frees the memory... .
精彩评论