Disable screen auto-lock when the clip is playing.

This commit is contained in:
Xavi Artigas 2013-05-22 13:30:14 +02:00
parent 72b7f3f2a2
commit 53aee99a76

View file

@ -75,6 +75,7 @@
{ {
[gst_backend deinit]; [gst_backend deinit];
} }
[UIApplication sharedApplication].idleTimerDisabled = NO;
} }
- (void)didReceiveMemoryWarning - (void)didReceiveMemoryWarning
@ -88,6 +89,7 @@
{ {
[gst_backend play]; [gst_backend play];
is_playing_desired = YES; is_playing_desired = YES;
[UIApplication sharedApplication].idleTimerDisabled = YES;
} }
/* Called when the Pause button is pressed */ /* Called when the Pause button is pressed */
@ -95,6 +97,7 @@
{ {
[gst_backend pause]; [gst_backend pause];
is_playing_desired = NO; is_playing_desired = NO;
[UIApplication sharedApplication].idleTimerDisabled = NO;
} }
/* Called when the time slider position has changed, either because the user dragged it or /* Called when the time slider position has changed, either because the user dragged it or