We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.3.47 (4.2.x版本也可复现)
iOS上的Web 浏览器 移动端Safari,微信端内均可复现
正常播放pag
pag无法加载,播放。无论是把pag放在本地,还是通过url加载,均加载失败。之前是可以播放的。
pag文件:https://mmae.qpic.cn/206/20303/stodownload?filekey=30250201010411300f020200ce040253480400020301b66a040d00000004627466730000000132&hy=SH&storeid=265a5482c000694d70b9d8b8c000000ce00004f4f53482a661b01e6823571a
复现代码:
<canvas class="canvas" id="pag"></canvas>
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> <script> var vConsole = new window.VConsole(); </script> <script src="https://cdn.jsdelivr.net/npm/libpag@latest/lib/libpag.min.js"></script> <script> async function fetchAndConvertToBase64(url) { const response = await fetch(url); const blob = await response.blob(); const reader = new FileReader(); return new Promise((resolve, reject) => { reader.onloadend = () => { resolve(reader.result.split(',')[1]); }; reader.readAsDataURL(blob); }); } const url = '../assets/libpag.wasm'; fetchAndConvertToBase64(url) .then((base64) => { console.log('Base64:', base64,base64,base64,base64,base64,base64,base64,base64,base64,base64,base64,base64,base64); }) // 打印超长字符串 .catch((error) => { console.error('Error:', error); }); window.onload = async () => { const pagUrl = 'https://mmae.qpic.cn/206/20303/stodownload?filekey=30250201010411300f020200ce040253480400020301b66a040d00000004627466730000000132&hy=SH&storeid=265a5482c000694d70b9d8b8c000000ce00004f4f53482a661b01e6823571a'; const PAG = await window.libpag.PAGInit(); const buffer = await fetch(pagUrl).then((response) => response.arrayBuffer()); const pagFile = await PAG.PAGFile.load(buffer); const canvas = document.getElementById('pag'); canvas.width = pagFile.width(); canvas.height = pagFile.height(); const pagView = await PAG.PAGView.init(pagFile, canvas); pagView.setRepeatCount(0); await pagView.play(); }; </script>
复现步骤
The text was updated successfully, but these errors were encountered:
kevingpqi123
No branches or pull requests
【版本信息】
4.3.47 (4.2.x版本也可复现)
【平台信息】
iOS上的Web 浏览器
移动端Safari,微信端内均可复现
【预期的表现】
正常播放pag
【实际的情况】
pag无法加载,播放。无论是把pag放在本地,还是通过url加载,均加载失败。之前是可以播放的。
【Demo及附件】
pag文件:https://mmae.qpic.cn/206/20303/stodownload?filekey=30250201010411300f020200ce040253480400020301b66a040d00000004627466730000000132&hy=SH&storeid=265a5482c000694d70b9d8b8c000000ce00004f4f53482a661b01e6823571a
复现代码:
复现步骤
The text was updated successfully, but these errors were encountered: