|
@@ -124,7 +124,7 @@ export default {
|
|
|
this.playerO.sources[0].src = this.json.video
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
- this.videoTime = Math.round(this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
+ this.videoTime = parseInt(this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
}, 500)
|
|
|
})
|
|
|
}
|
|
@@ -303,7 +303,7 @@ export default {
|
|
|
_this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
console.log(_this.$refs['videoPlayer']);
|
|
|
- _this.videoTime = Math.round(_this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
+ _this.videoTime = parseInt(_this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
}, 500)
|
|
|
})
|
|
|
_this.$forceUpdate();
|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
this.playerO.sources[0].src = this.json.video
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
- this.videoTime = Math.round(this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
+ this.videoTime = parseInt(this.$refs['videoPlayer'].player.cache_.duration)
|
|
|
}, 500)
|
|
|
})
|
|
|
}
|