0

I'm creating an app which include youtube videos. For this app i need a way to force the youtube video to open. how can i force it to start?

i've looked at this:

webView.userInteractionEnabled = NO;

But cant seem to figure out how to use it.

This is the code:

stringUrl = [NSString stringWithFormat:@"http://www.youtube.com/watch?v=%@", youtubeId[0]];
headerTitle.text = [NSString stringWithFormat:@"%@", theTitle[0]];
NSURL *url = [NSURL URLWithString:stringUrl];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[self.webView loadRequest:request];
user3140296
  • 169
  • 1
  • 9

1 Answers1

0

Here you will get working example project in which it is using HCYoutubeParser to parse the youtube url

https://github.com/hellozimi/HCYoutubeParser

form here you can down load working code and you can check it on simulator and iphone both even it will explain how to use it.

  • just by looking at the comments of that repo.. i can tell that it's a very non-stable solution – abbood Mar 20 '14 at 10:19