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

Aframe Vimeo Play/Pause Controls stop working with multiple videos. #26

Open
niverik2k opened this issue Jun 16, 2020 · 3 comments
Open

Comments

@niverik2k
Copy link

I was able to create a component,boxplaypause to allow playback to play and pause by clicking the <a-entity> And it works, until you attach the component to two entities in the same scene. There are no errors, and the console logs show that the component runs the code, but the 'vimeo.play()' and 'vimeo.pause()' stop working. I included a version with both autoplaying, to show that both videos are able to play at the same time and that the only thing that stops working is the play pause control.... I am using the most recent version of aframe 1.0.4

This is a link to the project
https://justinwking-vimeosample.glitch.me/

This is a link to the html document with the script, you would need to use it with the server.
playback.txt

@netomo
Copy link

netomo commented Jun 25, 2020

Having the same problem here! I can still play and pause the first added video player, but the new other ones simply doesn't work, they are even showing the miniature but are not working

@netomo
Copy link

netomo commented Jun 25, 2020

Hello there, has someone checked my question?

@lmccart
Copy link

lmccart commented Aug 11, 2021

I was able to get this to work by calling:

videoElement.components.vimeo.player.play();
videoElement.components.vimeo.player.pause();

instead of

videoElement.components.vimeo.play();
videoElement.components.vimeo.pause();

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