-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web 端 iOS 省电模式 await PAG.PAGView.init 失败 #80
Comments
用的是 https://pag.io/file/like.pag 这个PAG文件复现的吗 |
我这边定位到 iOS 在低电量模式下,Safari 会拦截Video 的自动播放,导致含有视频序列帧的 PAG 文件无法正常播放。会在后续版本尝试解决这个问题 |
@zenoslin 据我所知,android 和 iOS 省电模式都是不支持直接 不过,我这边业务场景是在微信 webview 里,我把代码 fork 出来,用了一个特殊的 API 处理 |
@jiangyijie27 你用了什么API解决这个问题可以分享一下吗? 我们这边考虑在无法使用Video标签解码时,采用外部注入解码器的方式,去处理视频序列帧,这样在Video标签受限的时候也能正常地解码PAG内包含的视频序列帧。 |
window.WeixinJSBridge.invoke("getNetworkType", {}, () => {
// 此时视频一定能播放
this.videolEl.play()
}) |
@jiangyijie27 对于无法使用Video标签解码的场景,我们增加了 |
Bug 描述
问题
Web 端 iOS 省电模式 await PAG.PAGView.init 失败
重现
可以用官方文档里的代码片段重现
环境
web 版本:[email protected]
设备:iPhone 12 Pro Max iOS15.2.1
The text was updated successfully, but these errors were encountered: