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.2.82
微信小程序
开发者工具预览正常
真机调试报错
const PAG = await PAGInit({ locateFile: file => { console.log('locateFile=====', file) return '/static/' + file } }) wx .createSelectorQuery() .in(this) .select('#pagPlayer') .fields({ node: true, size: true }, () => {}) .exec(async res => { const canvas = res[0].node const buffer: any = await pagUtil.loadFileByRequest( 'https://static-growth.diffusenetwork.com/FE/pags/%E8%87%B3%E5%B0%8A.pag' ) const pagFile = await PAG.PAGFile.load(buffer) const pagView: any = await PAG.PAGView.init(pagFile, canvas) pagView.play() })
The text was updated successfully, but these errors were encountered:
kevingpqi123
No branches or pull requests
【版本信息】
4.2.82
【平台信息】
微信小程序
【预期的表现】
开发者工具预览正常
【实际的情况】
真机调试报错
【Demo及附件】
const PAG = await PAGInit({
locateFile: file => {
console.log('locateFile=====', file)
return '/static/' + file
}
})
wx
.createSelectorQuery()
.in(this)
.select('#pagPlayer')
.fields({ node: true, size: true }, () => {})
.exec(async res => {
const canvas = res[0].node
const buffer: any = await pagUtil.loadFileByRequest(
'https://static-growth.diffusenetwork.com/FE/pags/%E8%87%B3%E5%B0%8A.pag'
)
const pagFile = await PAG.PAGFile.load(buffer)
const pagView: any = await PAG.PAGView.init(pagFile, canvas)
pagView.play()
})
The text was updated successfully, but these errors were encountered: