1.1.2 • Published 5 years ago
d-video-player v1.1.2
D-Video-Player
A video player component base on Vue and iview
Demo Address
http://component.davidwong.cn/d-video-player
Build Setup
setup
import
- use
- params explain
attention and skills
- every callback have two param
- you can get the video object on callback - 'on-loadeddata', also you can use this object operate the video, for example, play() or pause()
- but you can't use video object to set the video src directly
- if you need to set or change the video src, you can modify props src
- true:this.src = xxx,false:video.src = xxx;
- you must setup iview and import iview style
- if video'src change, it will not reset the progress bar, player would keep the current time and progress
- if you want reset the progress bar when change video'src, you can try 'video.currentTime = 0'