Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I am developing windows 8 program. My program plays video. When i minimized(Windows key + D || Alt + Tab ) my program and click to open again After I was hoping to continue. But it restarts. I need program's keep going. How can I make it?
Thanks in advance.
Posted

1 solution

Wire up a handler to the Suspending[^] event and when that fires store the current position of the video.
When the application is resumed, read that value and seek to that position before resuming video playback.

There are events firing on both sides of (almost) every state in the application lifecycle of Windows 8 apps[^], listening to them and reacting accordingly is key.

Hope this helps,
Fredrik
 
Share this answer
 

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