2

When I load mobile version of "youtube" (m.youtube.com) in UIWebView and click on some video, this video start playing automatically. Can I disable this behavior? I already tried this:

self.webView.mediaPlaybackRequiresUserAction = YES;
self.webView.allowsInlineMediaPlayback = NO;

But this is not helping.

I'm developing an app for downloading "youtube" videos and I really need to disable this auto playing feature for better user experience.

Cœur
  • 32,421
  • 21
  • 173
  • 232
lukasMT
  • 41
  • 3
  • Take a look [here][1] [1]: http://stackoverflow.com/questions/3010708/youtube-video-autoplay-on-iphones-safari-or-uiwebview this may help you. – Viper May 26 '14 at 09:44
  • I think this is not relevant for what I trying to do. I want to disable autoplay. – lukasMT May 26 '14 at 11:05
  • http://stackoverflow.com/questions/41005298/ios-disable-youtube-autoplay-in-wkwebview/43987417#43987417 – taku_oka May 15 '17 at 19:40

0 Answers0