Skip to content

Instantly share code, notes, and snippets.

@RameshAran
Created September 17, 2016 05:56
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/f6c97dd1bb951293c93457f142628717 to your computer and use it in GitHub Desktop.
Save RameshAran/f6c97dd1bb951293c93457f142628717 to your computer and use it in GitHub Desktop.
NSDictionary *playerVars = @{@"playsinline" : @1,};
if([self.mYTPlayerView loadWithVideoId:@"M7lc1UVf-VE" playerVars:playerVars])
{
self.mYTPlayerView.delegate = self;
}
else
{
NSLog(@"failed loading player");
}
@RameshAran
Copy link
Author

Load video with youtube id.

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