Loading multiple videos in WPF: how to free memory?

  • Thread starter Thread starter Jan M
  • Start date Start date
J

Jan M

Dear all,

Currently, 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. Unfortunately, I cannot load more than 10 videos at a
time, after that it stops loading videos and only shows a black screen
where normally the video should be played.

I think this has something to do with my PC's memory. Is there a way
to free this memory after loading a video? This could enable the next
scenario:
1) load 10 videos / 40
2) play the first one
3) after playing the first one, free this memory (how should I do
this?)
4) load the 11th video / 40

Now, I just tried to call the media element's stop function but this
doesn't seem to free any memory... .

Does someone has a solution for this problem? It would help me a lot.

Cheers,
Jan
 
Back
Top