videojs-player icon indicating copy to clipboard operation
videojs-player copied to clipboard

i'am try to change sources src but video-player doesn't work

Open deeduan opened this issue 6 years ago • 3 comments

problem:

i'am try to change sources src but video-player doesn't work

one: this.userOptions.source[0].src = this.videoUrl;

two: this.userOptions.source[0].src = this.videoUrlTwo;

but the second operation doesn't work...

video alaways play one : this.videoUrl

how to fix this problem?

deeduan avatar Oct 30 '18 09:10 deeduan

I have the same problem

Juanperezc avatar Nov 03 '18 17:11 Juanperezc

You cannot change the video source by directly modifying the configuration file. Change as follows. The same is true for changing the cover image. this.$refs.videoPlayer.player.src(this.videoUrl) this.$refs.videoPlayer.player.poster(this.posterImg)

bingfengding avatar Apr 16 '19 05:04 bingfengding

You cannot change the video source by directly modifying the configuration file. Change as follows. The same is true for changing the cover image. this.$refs.videoPlayer.player.src(this.videoUrl) this.$refs.videoPlayer.player.poster(this.posterImg)

use this method ,the video frame also cannot change in vue, do you have some advises?

yushaoyi avatar Jan 03 '20 15:01 yushaoyi