I know there is a lot of questions about running timer in background, for instance this one : how to keep running NSTimer when app goes in background , whose answer I will certainly use if I get nothing else, but my problem is not really when the application goes in background (that is, if I understand correctly what that means).
So here it is, I have a view controller with a timer that I use as a countdown, from this view controller it is possible to see videos. I use AVPlayerViewController
for that part. :
AVPlayer *player = [AVPlayer playerWithURL:videoURL];
AVPlayerViewController *playerViewController = [AVPlayerViewController new];
playerViewController.player = player;
[self presentViewController:playerViewController animated:YES completion:nil];
Therefore I have a AVPlayerViewController
above the one owning the timer and the timer stops counting until I leave this AVPlayerViewController
. I would like it to keep down counting, is there a way to do that without writing current time in a file and so on ?
Thanks for your help