mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
Disable screen auto-lock when the clip is playing.
This commit is contained in:
parent
72b7f3f2a2
commit
53aee99a76
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
|||
{
|
||||
[gst_backend deinit];
|
||||
}
|
||||
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
@ -88,6 +89,7 @@
|
|||
{
|
||||
[gst_backend play];
|
||||
is_playing_desired = YES;
|
||||
[UIApplication sharedApplication].idleTimerDisabled = YES;
|
||||
}
|
||||
|
||||
/* Called when the Pause button is pressed */
|
||||
|
@ -95,6 +97,7 @@
|
|||
{
|
||||
[gst_backend pause];
|
||||
is_playing_desired = NO;
|
||||
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
||||
}
|
||||
|
||||
/* Called when the time slider position has changed, either because the user dragged it or
|
||||
|
|
Loading…
Reference in a new issue