summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2013-05-22 13:30:14 +0200
committerXavi Artigas <xartigas@fluendo.com>2013-05-22 13:30:14 +0200
commit53aee99a76b5b22c5ece7504cc8bd745580d6680 (patch)
tree0fd9d3ab017ce94bd8f819fc723fb15152106586
parent72b7f3f2a21e91a8dd5662d229e1bdc56d876062 (diff)
Disable screen auto-lock when the clip is playing.
-rw-r--r--gst-sdk/tutorials/xcode iOS/Tutorial 5/VideoViewController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-sdk/tutorials/xcode iOS/Tutorial 5/VideoViewController.m b/gst-sdk/tutorials/xcode iOS/Tutorial 5/VideoViewController.m
index 54758c9..19f6f0e 100644
--- a/gst-sdk/tutorials/xcode iOS/Tutorial 5/VideoViewController.m
+++ b/gst-sdk/tutorials/xcode iOS/Tutorial 5/VideoViewController.m
@@ -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