objective c - Play embeded youtube video on button press -


Is it possible to embed a YouTube video in your application, but instead of being shown a preview thumbnail to the user who can be touched , Show a standard UIButton that loads the video directly into the actual YouTube player when touched. Will the user return to my app after clicking (as it happens with embedded webview) Is this possible?

Use the YouTube Custom URL scheme Read this

Example

  [[UIApplication shared application] openURL: [NSURL URLWithString: @ "http://www.youtube.com/watch?v=VIDEO_IDENTIFIER"]];   

This approach will take you out of your app and open the native YouTube app. I do not think there is anything available in the YouTube player to hide thumbnails. For autoplay without tapping UIWebView, please read the answer for

Comments