Im wondering how to play youtube video directly in webview the same as on desktop browser.
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"UserAgent": @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.3 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.3" }];
[self.view addSubview:aWebView];
[aWebView loadRequest:requestObj];
But it's still forcing webview to switch playing video in this iphone video player ? i guess ML..PLayer... ?It's dosent matter, i want play video in webview, And it's can be youtube frame, must be directly youtube.com/watch/video