Is it possible to embed a youtube video in your application, but rather than showing the user a preview thumbnail that can be touched, show a standard UIButton that loads the video directly into the actual youtube player when touched. After the user clicks done control would return to my application (as it does with embedded webview) Is this possible?
Asked
Active
Viewed 1,185 times
1 Answers
2
Use youtube custom URL scheme. Read it from here
E.g.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=VIDEO_IDENTIFIER"]];
This approach will take you out of your app and open native Youtube app. I don't think there is any thing available in youtube player options to hide thumbnail. For autoplay without tapping UIWebView please read answers for this this and this
-
This will take the user out of the application. I want to embed the video in my app so that when they are finished watching, they are returned to the app. – charliehorse55 Jul 09 '12 at 18:36
-
Sorry, I misunderstood your question. Updating answer – msk Jul 09 '12 at 18:49
-
Apple really needs to add a function `+openYoutubeID:(NSString*)` that will open the video in the fullscreen player. – charliehorse55 Jul 09 '12 at 20:19