Skip to content

Instantly share code, notes, and snippets.

@RameshAran
Created September 17, 2016 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RameshAran/43de9ae657d9c139aa1ebdc9b86036f6 to your computer and use it in GitHub Desktop.
Save RameshAran/43de9ae657d9c139aa1ebdc9b86036f6 to your computer and use it in GitHub Desktop.
- (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];
}
}
@RameshAran
Copy link
Author

Pause and stop the video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment