vimeo / aframe-vimeo-component

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

Issues in an Angular app: Video won't show immediately / Changing video programmatically #28

Open max-ri opened 4 years ago

max-ri commented 4 years ago

Hi, I am trying to use the vimeo component in an Angular application but I'm having two issues currently. I am thinking (or hoping?) both should have a similar easy solution:

  1. The video will only show up once I click on the enter vr button. Can be reproduced by copying the code one of the examples into an angular component. It works, but only after clicking on enter vr. Before that it just shows a white screen. Video is still showing after exiting vr mode.

  2. I would like to be able to change the video that is showing eg when pressing an button etc. I can do something like this.vimeoElement.nativeElement.setAttribute("vimeo", 'id: ' + this.vimeoId + '; autoplay: false; loop: false'); But this will only work for setting up the first video. (And only after clicking enter vr, see 1). Video won't change when i do this later on.

Thank you!

max-ri commented 4 years ago

Glitch example showing 1.: https://glitch.com/~max-ri-vimeo-angular-example-1