2***@qq.com
2***@qq.com
  • 发布:2024-02-06 14:53
  • 更新:2024-03-21 21:10
  • 阅读:171

【报Bug】在uniapp中使用video标签playbackRate设置倍速,在H5端使用无问题,但是打包成app或在模拟器以及真机上运行时,playbackRate设置倍速不起作用,并且会报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 3.99

手机系统: Android

手机系统版本号: Android 13

手机厂商: vivo

手机机型: vivos6

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

预期结果:

实际结果:

wu

bug描述:

doubleSpeed() {
let videoContext = uni.createVideoContext('myVideo', this) //这里的'myVideo'要和上方video标签的id相对应
console.log(videoContext, "测试使用另一种倍速播放")
videoContext.playbackRate(2) //括号里面可以设置倍速
console.log("测试使用另一种倍速播放")
},

报错:14:51:14.880 [Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

2024-02-06 14:53 负责人:无 分享
已邀请:
consoleLog123

consoleLog123 - 向大前端方向迈进!

华为平板 也复现了 没报错 但就是不生效

2***@qq.com

2***@qq.com - 前来入坑

请问解决了吗?我这也是h5预览倍速正常,但打包真机就没效果了。。。急呀!

喜欢技术的前端
  • 2***@qq.com

    这个我之前试过了,但是弹幕发现又不行了

    2024-03-22 19:22

  • 2***@qq.com

    即要倍速又要弹幕

    2024-03-22 19:23

要回复问题请先登录注册