aframe-vimeo-component icon indicating copy to clipboard operation
aframe-vimeo-component copied to clipboard

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

Open niverik2k opened this issue 4 years ago • 3 comments

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

niverik2k avatar Jun 16 '20 04:06 niverik2k

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 avatar Jun 25 '20 06:06 netomo

Hello there, has someone checked my question?

netomo avatar Jun 25 '20 17:06 netomo

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();

lmccart avatar Aug 11 '21 19:08 lmccart