详细问题描述
<video :src="src" @timeupdate="videoUpdate"></video>
在非v3下currentTime被放在event.detaill.currentTime
videoUpdate(event) {
console.log("刷新", event.detaill.currentTime);
}
在v3下currentTime被放在event.detaill.detaill.currentTime中
videoUpdate(event) {
console.log("刷新", event.detaill.detaill.currentTime);
//调用下面这句会报错 TypeError: JSON.stringify cannot serialize cyclic structures
// console.log( JSON.stringify(event.detail));
}
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
[IDE版本号]
2.6.6.20200320-alpha
[mac版本号]
macOS 10.15.3 (19D76)
uni-app运行环境说明
[运行端是h5或app或某个小程序?]
app
[运行端版本号]
编译器版本:2.6.6(v3)
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
HBuild X
[编译模式说明:自定义组件模式?纯nvue模式?v3模式?]
v3
App运行环境说明
[iOS版本号]
iPad os 13.3.1
[手机型号]
iPad 2018
附件
[可重现代码片段]
<template>
<view>
<video :src="src" @play="videoPlay" @pause="videoPlayPause" @timeupdate="videoUpdate"></video>
<button @click="chooseVideo">选择视频</button>
</view>
</template>
<script>
export default {
data() {
return {
src: ""
}
},
methods: {
videoPlay() {
},
videoPlayPause() {
},
videoUpdate(event) {
console.log("刷新", JSON.stringify(event.detail));
console.log("刷新", event.detail.detail.currentTime);
},
chooseVideo() {
let _this = this;
uni.chooseVideo({
sourceType: ['album', 'camera'],
maxDuration: 60,
camera: ['front', 'back'],
success: function (res) {
_this.src = res.tempFilePath
}
})
}
}
}
</script>
<style>
</style>
v***@qq.com
V3目前版本倍速播放也有问题,默认基座可以,自定义基座打包倍速播放失效
2020-03-25 19:19
Javin (作者)
回复 v***@qq.com: 给他开个单独报bug的帖子
2020-03-29 13:00