I'm using WKWebView instead of UIWebView. But I did not get a way to fetch the url of embedded video.
I have tried with these methods:
[wkWebView evaluateJavaScript:@"document.querySelector('video').currentSrc;" completionHandler:^(id result, NSError *error) {
// result will contain the video url
}];
Please suggest a method to get the embedded video url in web page using WKWebView.