S
S
sdsdsd12017-08-14 09:27:07
Android
sdsdsd1, 2017-08-14 09:27:07

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

1 answer(s)
A
Alexander Varakosov, 2017-08-14
@sdsdsd1

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 question

Ask a Question

731 491 924 answers to any question