Created
September 17, 2016 05:59
-
-
Save RameshAran/43de9ae657d9c139aa1ebdc9b86036f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)pause:(id)sender | |
{ | |
if(self.mYTPlayerView.playerState == kYTPlayerStatePlaying){ | |
[self.mYTPlayerView pauseVideo]; | |
} | |
} | |
- (IBAction)stop:(id)sender | |
{ | |
if(self.mYTPlayerView.playerState == kYTPlayerStatePlaying || self.mYTPlayerView.playerState == kYTPlayerStatePaused){ | |
[self.mYTPlayerView stopVideo]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pause and stop the video