Answer the question
In order to leave comments, you need to log in
Android Webview - how to disable iframe or video playback?
Webview shows a website with information and an embedded YouTube video. It is necessary that the iframe is not shown to the user or that he cannot watch the video.
Video is shown anyway inside webview -> shouldOverrideUrlLoading only works for links...
Answer the question
In order to leave comments, you need to log in
The simplest way is to use loadUrl() to inject a JS script that will hide or remove the desired element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question