Reputation: 907
I have one capture application, that performs the MP4
capture. i need to schedule this capture application to capture video of every 30 minutes (or some dynamic value).
I read the MSDN article for IReferenceClock::AdviseTime
from article i am not sure but i assume will trigger event when end-time elapses. but it not seems to work . please advice me if my understanding is incorrect about it. Or is any other batter way to repeat schedule in 30 minutes to capture video??
Thanks
Upvotes: 0
Views: 269
Reputation: 69632
IReferenceClock::AdviseTime
is what let's close schedule setting an event. Filters might take advantage of this internally as a part of streaming operation. For you, however, this methods is of no use. There is a number of ways to trigger an action every 30 minutes. On a running application you would typically use SetTimer
+ WM_TIMER
API. If you want your app started every 30 minutes, Task Scheduler is here for you.
Upvotes: 1