I've been given a warning by YouTube that the embedded video in my app has a title that is meant to be clickable and take the user to YouTube.
However I cannot understand how that is meant to happen because all we're doing is using a WKWebview to load a url
Is there something I'm missing? Is there something that needs to be added to the url?
WKWebView *webView = [[WKWebView alloc] initWithFrame: self.videoContainerView.bounds]; webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString: [NSString stringWithFormat:@"https://www.youtube.com/embed/%@", rowViewModel.videoId]]]; webView.clipsToBounds = YES; webView.contentMode = UIViewContentModeScaleAspectFill; [webView loadRequest:request];
I've tried looking around to see if there are parameters that can be passed but I'm not sure I found anything useful.