aboutsummaryrefslogtreecommitdiffstats
path: root/Video Tuneup/ViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Video Tuneup/ViewController.m')
-rw-r--r--Video Tuneup/ViewController.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/Video Tuneup/ViewController.m b/Video Tuneup/ViewController.m
index ca3d92d..b88a8f8 100644
--- a/Video Tuneup/ViewController.m
+++ b/Video Tuneup/ViewController.m
@@ -14,7 +14,7 @@ static const NSString *ItemStatusContext;
@implementation ViewController
-@synthesize player, playerItem, playerView, playButton;
+@synthesize player, playerItem, playerView, playButton, pauseButton;
#pragma mark - Video playback
@@ -97,6 +97,14 @@ static const NSString *ItemStatusContext;
- (IBAction)play:sender {
[player play];
}
+
+- (IBAction)pause:sender {
+ [player pause];
+}
+
+- (IBAction)rewind:sender {
+ [player seekToTime:kCMTimeZero];
+}
- (void)playerItemDidReachEnd:(NSNotification *)notification {
[player seekToTime:kCMTimeZero];