diff --git a/components/video-player/video-player.vue b/components/video-player/video-player.vue index ec24321..d87631d 100644 --- a/components/video-player/video-player.vue +++ b/components/video-player/video-player.vue @@ -189,16 +189,17 @@ export default { //document.getElementById('xvideoPlayer').style.display = 'block' //this.videoContext=uni.createVideoContext("xvideoPlayer", this); }, - inittime(newVal, oldVal) { - this.initPlayingTime = newVal; - //console.log('inittime::',newVal,oldVal) + inittime: { + handler(newVal, oldVal) { + this.initPlayingTime = newVal; + } } }, mounted() { var _this = this this.initPlayingTime = this.inittime; this.videoContext = uni.createVideoContext("xvideoPlayer", this); - // document.getElementsByTagName('video')[0].load() + document.getElementsByTagName('video')[0].load() uni.getSystemInfo({ success: function (info) { //alert(info.windowWidth)