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

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

Open max-ri opened this issue 3 years ago • 1 comments

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 avatar Sep 06 '20 10:09 max-ri

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

max-ri avatar Sep 06 '20 18:09 max-ri