DownloadListener.onDownloadStart() never called

前端 未结 1 2018
小鲜肉
小鲜肉 2021-01-12 19:49

In my attempts to create a WebView that plays YouTube videos via HTML5 (and not via Flash), I tried to implement this article verbatim, right insid

相关标签:
1条回答
  • 2021-01-12 20:43

    setDownloadListener sets the listener when the WebView doesn't think the content can be handled by the rendering engine.

    Register the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead. This will replace the current handler.

    The webview uses the WebKit rendering engine and I believe that can (or thinks it can) handle html5 so that listener will not be called.

    0 讨论(0)
提交回复
热议问题