开发者

Detect embeded object in webview

开发者 https://www.devze.com 2022-12-22 00:39 出处:网络
I was just wondering if using the private API it is possible to detect embed开发者_运维问答ed videos and also get their src URL?

I was just wondering if using the private API it is possible to detect embed开发者_运维问答ed videos and also get their src URL?

This would be a huge help thank u so much.


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];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号