Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3638

YouTube video in Objective C app needs to redirect to YouTube

$
0
0

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.


Viewing all articles
Browse latest Browse all 3638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>