How do I stop Flash after leaving a WebView?

后端 未结 6 1833
忘掉有多难
忘掉有多难 2020-12-30 08:11

I have an app that I\'ve put together to stream flash video in a webview when a user clicks a button.

It does this fine, but after backing out or losing focus, it lo

6条回答
  •  無奈伤痛
    2020-12-30 08:35

    The webViwe destory approach did not work for me - it worked well on the first close of the webview, but subsequent calls to the webview caused a crash.

    I ended up doing this:

    _webView.loadData("", "text/html", "utf-8");

    from my activity finish() method.

提交回复
热议问题