views:

18

answers:

1

Hello I was just wondering if using the private API it is possible to detect embeded videos and also get their src URL?

This would be a huge help thank u so much.

A: 

You could use the public API if you're wiling to write a little bit of Javascript and have it run in the context of the page, returning you whatever you want.

For example:

NSString * js = @"var myLink=document.getElementById('well-known-id'); myLink.href;";
NSString * url = [webView stringByEvaluatingJavaScriptFromString:js];
quixoto