Léon
Léon
> 目前这个没有啥好办法,不同浏览器内核对onpagerfinish 调用时机也不同,建议业务上不要太依赖onpagerfinish了 好吧,谢谢了,还有个问题 我想在shouldInterceptRequest 方法中把页面中的视频替换为我本地缓存的视频,但是发现在Android 8.1 上可以,在Android4.4和Android5.1上不行,请问你有什么好的办法么?
> 4.4和5.1是报什么错误了? 没有报错,但是H5播放的任然的video 标签中src的视频, 而不是本地缓存的 ` @TargetApi(Build.VERSION_CODES.LOLLIPOP) @Nullable @Override public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { LogUtils.d(Thread.currentThread().getName() + " +++++++++++++++++++Start+++++++++++++++++++"); LogUtils.d(request.getRequestHeaders()); LogUtils.d(request.getUrl().toString()); LogUtils.d(Thread.currentThread().getName() + " ++++++++++++++++END++++++++++++++++++++++"); if (request.getUrl().toString().endsWith("mp4")) { try...
> 你看看webview Console 有啥信息没,还有把http请求和返回header打印出来看看,我猜可能和gzip有关吧 并没有,MP4的请求似乎不是经过原生这边的,低版本上,webresponse 是空的
> 你说的webresponse 是空的是啥意思? 就是在shouldInterceptRequest中WebResourceResponse 是空的 ,自己构造的话不生效
> 多谢反馈,我近期迁移下 大哥,啥时候迁移啊
6.0以后才有深色模式。。。。
@hotchemi In PermissionsRequestFragment onAttach Method ` activity?.requestedOrientation = if (context.resources.configuration.orientation == ORIENTATION_PORTRAIT) ActivityInfo.SCREEN_ORIENTATION_PORTRAIT else ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE` Android8.0 can't set orientation sometime ,Please fix this bug Caused by: java.lang.IllegalStateException: Only fullscreen activities...
😭可以的。666
_(:зゝ∠)_,这么好用的插件,赶紧更新!!!
Thx,我等菜鸟只能抱大腿