{"type":"timeupdate","timeStamp":1670580736489,"target":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"duration":367,"currentTime":20}}
{"type":"timeupdate","timeStamp":1670580736489,"target":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"duration":367,"currentTime":20}}
{"type":"timeupdate","timeStamp":1670580736489,"target":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"duration":367,"currentTime":20}}
{"type":"timeupdate","timeStamp":1670580736489,"target":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"video1","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"duration":367,"currentTime":20}}
- 发布:2022-12-09 18:27
- 更新:2022-12-10 23:28
- 阅读:280
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: Alpha
HBuilderX版本号: 3.6.12
手机系统: iOS
手机系统版本号: iOS 14
手机厂商: 苹果
手机机型: iphone x
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
helloUniapp 云打包 真机pc调试
helloUniapp 云打包 真机pc调试
预期结果:
需要带上毫秒
需要带上毫秒
实际结果:
currentTime都是秒,没有精确到毫秒
currentTime都是秒,没有精确到毫秒
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
不算是bug,官方也没有声明到毫秒,单位就是秒
redstoone (作者)
官方文档写了 @timeupdate EventHandle 播放进度变化时触发,event.detail = {currentTime, duration} 。触发频率 250ms 一次。 如果返回秒,那250ms触发一次就没有意义了。单位就是秒,之前返回是有保留3位小数的
2022-12-12 09:16
天生DR
回复 redstoone: 一直都是秒
2022-12-12 18:24
redstoone (作者)
回复 天生DR: 那250ms触发一次有什么意义?
2022-12-12 19:54