webview 关闭之后 音频没有立即停止播放

57 阅读1分钟
Future<void> webControllerDispose() async {
    /// dispose打开空白页面,关闭音频
    String url = "about:blank";
    await _webController?.loadRequest(Uri.parse(url), headers: {

    });
    _webController?.clearCache();
    _webController?.clearLocalStorage();
  }