Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi all,

Im developing a WPF page for Windows Application. On default page,there will be a video playing continuosly until user touch the screen.

I've seen the task manager when the video is loaded. It use 1.2GB/3.8GB. After left it idle while video plays for 30minutes, I see the video become slow and laggy. Everything I touch become lag to navigate to other page. Even to open task manager takes time and when it do, the memory used is 3.4GB/3.8GB.

Why are these happen,and how to efficiently use the MediaElement to clear anythings that been use to the memory. There only one video to play from directory. On my code,if one video file detected, after finish playing, it will back to 0:0:00 position and play again.

Can someone guide me on how to do in a better and smart way for this to encounter memory consume?

Thanks everyone..
Posted
Updated 10-Dec-15 21:17pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900