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

Animation does not work in WebXR #466

Open
patrickkeenan opened this issue Nov 6, 2023 · 5 comments
Open

Animation does not work in WebXR #466

patrickkeenan opened this issue Nov 6, 2023 · 5 comments

Comments

@patrickkeenan
Copy link

Animation works on quest when the browser is open, but not when its closed. This makes me thing there's a check for window, to make sure its valid. However, WebXR sessions do not have a window object. I can understand that its important to check for a server side rendered component, but maybe there's another way to check rather than using window == "undefined".

A couple example lines

if (typeof window === 'undefined') {

const stop = (): void => {

@jerryhou77
Copy link

did you find the way to solve this problem, we found theatr.js animation will frozen when enter AR or VR mode on quest browser.

@patrickkeenan
Copy link
Author

No resolution, ended up writing my own animation UI. Ideally this is addressed in the next version.

@jerryhou77
Copy link

do you use rafDriver ?

@patrickkeenan
Copy link
Author

I've tried to use it yeah, couldn't get it working

@jerryhou77
Copy link

I just made a simple demo using aframe, it works on quest browser https://jerryhou77.github.io/aframe/

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

2 participants