Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
max-ri opened this issue Sep 6, 2020 · 1 comment

Comments

@max-ri
Copy link

max-ri commented Sep 6, 2020

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
Copy link
Author

max-ri commented Sep 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant