Skip to content
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

视频组件的缓冲事件在支付宝小程序中无法监听 #2185

Closed
blueprint1453 opened this issue Oct 14, 2020 · 2 comments
Closed

视频组件的缓冲事件在支付宝小程序中无法监听 #2185

blueprint1453 opened this issue Oct 14, 2020 · 2 comments
Assignees

Comments

@blueprint1453
Copy link

根据视频组件的文档,视频组件中我们写了如下两个监听事件 监听视频缓冲和进度变化
@waiting="onWaiting"
@timeupdate="onTimeupdate"

在支付宝开发者工具中,使用真机预览,发现无法触发上述两个事件
去编译后的dist目录中的代码

在支付宝平台中,@waiting对应的是onLoading,我们发现@waiting编译后并没有转化为loading或者onLoading事件名

于是我在视频组件中加入了
@Loading="onWaiting"这一行,发现就可以了

现在的问题是,为什么框架没有把@waiting="onWaiting"事件编译成支付宝的loading/onLoading事件,waiting事件在支付宝中应该不回起效

@AcherTT
Copy link

AcherTT commented Feb 1, 2021

所以,timeupdate还是没找到办法,我看编译后的axml文件里onTimeUpdate绑定的是“__e”,就是空的,可是文档没写支付宝不支持timeupdate。哎,啥玩意儿

@zhetengbiji
Copy link
Collaborator

HBuilderX 3.1.0 alpha 已修复

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

No branches or pull requests

3 participants