vue-responsive-video-background-player
vue-responsive-video-background-player copied to clipboard
Add stop() method or get access to video object
Hello!
I need to have ability to stop and reset video to the start. That's why I need the following in VideoPlayer.vue:
stop() {
if (this.$refs.video) {
this.$refs.video.stop();
}
},
or to have more control there'll be great to have:
video() {
return this.$refs.video;
},
thanks!
Hey :) You should have everything what you need here https://github.com/avidofood/vue-responsive-video-background-player#methods
@pmochine may be I don't understand, but how can I rollback a video to the start? I tried all methods from your list.
@vdomah the "reload" method for HTML5 video is missing
Have a look here, you should implement this here as well.
The problem is your load() method has 1 second delay and I can't make it 0. For now I solved my problem by rerendering the vue component by manually changing the :key attr of the component.