I have a tableview and each cell has a webview.On each webview i load a different embed video from youtube.
CardCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"CardCell"];
NSString *fullURL = [NSString stringWithFormat: @"https://youtube.com/embed/%@?",videoID];
NSURL *url = [NSURL URLWithString:fullURL];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[cell.videoView loadRequest:requestObj];
cell.videoView.scrollView.scrollEnabled = NO;
My problem is that every time i scroll the table, because of reusing the cells, on webview it shows the previous video and after a sec it shows the correct one.
I tried to use this: https://github.com/youtube/youtube-ios-player-helper but it creates every time a different web view and that makes the scrolling REALLY slow and not smooth at all.
Any solutions? `