vimeo / aframe-vimeo-component

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

Adding laser-controles does not work with Vimeo component #27

Open DimitriBin opened 4 years ago

DimitriBin commented 4 years ago

Hi, When in VR Mode in the VR headset (oculus quest), the laser controls do not work when using the vimeo component. Does anyone know why this is? or have a workaround ?

Working code example below without vimeo, lasers work fine:

<a-scene >
    <a-videosphere ></a-videosphere>
  <a-box color="tomato" depth="2" height="4" width="0.5" position="0 2.4 -8"></a-box>
  <a-entity  laser-controls="hand: left"  raycaster="objects: .collidable" line="color: #26608c"></a-entity>
  <a-entity laser-controls="hand: right" raycaster="objects: .collidable" line="color: #26608c"></a-entity>
</a-scene>

NOT working code example:

<a-scene >
    <a-videosphere vimeo="id: XXXXXXXXXX; autoplay: true;" ></a-videosphere>
  <a-box color="tomato" depth="2" height="4" width="0.5" position="0 2.4 -8"></a-box>
  <a-entity  laser-controls="hand: left"  raycaster="objects: .collidable" line="color: #26608c"></a-entity>
  <a-entity laser-controls="hand: right" raycaster="objects: .collidable" line="color: #26608c"></a-entity>
</a-scene>

Thanks a lot

DimitriBin commented 4 years ago

here's the glitch project:

https://stormy-melodious-feta.glitch.me https://stormy-melodious-feta.glitch.me/working https://stormy-melodious-feta.glitch.me/notworking

thank you for looking into this