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

player value isn't exposed to parent #104

Open
iangoodall opened this issue Aug 2, 2024 · 0 comments
Open

player value isn't exposed to parent #104

iangoodall opened this issue Aug 2, 2024 · 0 comments

Comments

@iangoodall
Copy link

iangoodall commented Aug 2, 2024

I was looking into this issue #103 by creating a fork of the player and realised that the player as a ref is undefined. Here's a screenshot of Vue Dev Utilities showing the component:

image

So when you try to call setCurrentTime on the player instance it isn't defined. I tried changing the player to a reactive property but that created its own issues.

One thing I tried was to add a setCurrentTime() function in the vue-vimeo-player which you can see in my screenshot. That works, but would mean that I would need to add a function to correspond to every function that the Vimeo player provides, which seems a bit redundant.

Wondering if anyone has any ideas how we can make sure the player is exposed to the parent component so we can use the other Vimeo player APIs.

I know this was raised a while ago and PR was done for it #85 but below the closing of that issue those who were affected ended up creating a workaround.

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

1 participant