Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stop() method or get access to video object #30

Open
ribagek opened this issue Oct 28, 2021 · 4 comments
Open

Add stop() method or get access to video object #30

ribagek opened this issue Oct 28, 2021 · 4 comments

Comments

@ribagek
Copy link

ribagek commented Oct 28, 2021

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!

@pmochine
Copy link
Contributor

Hey :)
You should have everything what you need here
https://github.com/avidofood/vue-responsive-video-background-player#methods

@vdomah
Copy link

vdomah commented Oct 29, 2021

@pmochine may be I don't understand, but how can I rollback a video to the start? I tried all methods from your list.

@pmochine
Copy link
Contributor

@vdomah the "reload" method for HTML5 video is missing

Have a look here, you should implement this here as well.

@vdomah
Copy link

vdomah commented Oct 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants