码迷,mamicode.com
首页 > Web开发 > 详细

vue video.js使用

时间:2018-06-25 18:54:39      阅读:4172      评论:0      收藏:0      [点我收藏+]

标签:result   ext   next   初始化   asc   nextTick   video   load   tps   

插件github地址:https://github.com/videojs/video.js

这边做一个切换视频vue url的解决记录

        this.$nextTick(() => {
          let u = this.res.videoResult.videoPath
          document.getElementById(‘video_source‘).setAttribute(‘src‘, u)
          let myPlayer = videojs(‘yhqzVideo‘)  // 初始化视频
          myPlayer.src(u)  //重置video的src
          myPlayer.load(u)  //使video重新加载
          this.myPlayer = myPlayer
        })

  

 

vue video.js使用

标签:result   ext   next   初始化   asc   nextTick   video   load   tps   

原文地址:https://www.cnblogs.com/zph666/p/9225546.html

(1)
(2)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!