Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

【libpag-lite】iPhone15 ios17.0.3 safrai 无法播放 pag,无报错 #2420

Open
BUPTlhuanyu opened this issue Aug 13, 2024 · 2 comments
Open
Assignees

Comments

@BUPTlhuanyu
Copy link

BUPTlhuanyu commented Aug 13, 2024

【版本信息】

4.2.88

【平台信息】

iPhone15 ios17.0.3 safrai

【预期的表现】

正常展示

【实际的情况】

无法展示,并且无报错,目前只发现这个手机无法展示。整个项目中的所有 pag 在该机型上都无法展示

并且,我将 lite 里 create 的 video 组件挂载到页面上,其他机器上能展示并且播放这个资源,但是唯独这个机器上不行,因此应该是 coverToMp4 有问题

【Demo及附件】

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="pag"></canvas>
    <script src="https://cdn.jsdelivr.net/npm/libpag-lite@latest/lib/pag.min.js"></script>
    <script>
        window.onload = async () => {
            const { PAGView, types } = window.libpag;
            const arrayBuffer = await fetch('xxx.pag').then((res) => res.arrayBuffer());
            const canvas = document.getElementById('pag');
            canvas.width = 260;
            canvas.height = 260;
            const pagView = PAGView.init(arrayBuffer, canvas, {
                renderingMode: types.RenderingMode.Canvas
            });
            pagView.play();
        };
    </script>
</body>
</html>

@cheer4chai
Copy link

+1

1 similar comment
@zhangyunwei
Copy link

+1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants