i have wkwebview goes youtube , click on video without automatically throwing me video player.
i tried stopping in 3 different ways
- using
config.requiresuseractionformediaplayback = true - in
decidepolicyfornavigationactiondelegate function check presence of youtube video , setdecisionhandler(wknavigationactionpolicy.cancel) - i added
webview.stoploading()stuff did in #2
despite doing that, clicking on link still triggers video automatically start playing.
i'm out of ideas; thoughts?
i know try injecting javascript seems last resort me.
Comments
Post a Comment