又遇到个h5 ios卡死的问题 #3180
Unanswered
xiewenchong
asked this question in
General
又遇到个h5 ios卡死的问题
#3180
Replies: 1 comment 1 reply
-
|
该问题我们会复现后排查下原因,请问该问题在 android 手机中是否出现,我本地在 android 手机中没复现到 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
大佬,我又遇到个卡死的问题,只是普通的播放单张动画,ios偶现播放一半卡死(可能5次有1次,不确定)
【libpag版本】:官方demo的版本 4.5.16也试过
【手机系统及型号】:ios15, 18.6.2版本
【官方demo】:https://github.com/libpag/pag-web/blob/main/pages/simple.html
window.onload = async () => {
const pagUrl = '../assets/有问题.pag';
// Initialize pag webassembly module.
const PAG = await window.libpag.PAGInit();
// Fetch pag file.
const buffer = await fetch(pagUrl).then((response) => response.arrayBuffer());
// Load the PAGFile from file.
const pagFile = await PAG.PAGFile.load(buffer);
// Set the width from the PAGFile.
const canvas = document.getElementById('pag');
canvas.width = 300;
canvas.height = 600;
// Create PAGView.
const pagView = await PAG.PAGView.init(pagFile, canvas);
// Set PAGView play infinity.
pagView.setRepeatCount(0);
await pagView.play();
};
【环境】:ios手机直接扫码或者浏览器打开
【问题资源】:
Downloads.zip
【问题复现截图】
image
Beta Was this translation helpful? Give feedback.
All reactions