vimeo / aframe-vimeo-component

Stream Vimeo videos into WebVR.
https://aframe-vimeo-component.glitch.me/
MIT License
82 stars 23 forks source link

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

Open niverik2k opened 4 years ago

niverik2k commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Hello there, has someone checked my question?

lmccart commented 3 years ago

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