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

Use qsVREntryType as forcedVREntryType when remounting UI for mobileVR if it is available #3408

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

takahirox
Copy link
Contributor

@takahirox takahirox commented Nov 21, 2020

Background

I opened Hubs with vr_entry_type=2d_now for automatic testing purpose because I want to shortcut the dialogs and automatically enter a room. But on VR headsets (I used Oculus Quest), the audio setup dialog is displayed.

The reason seems that forcedVREntryType is overridden with "vr" for mobileVR.

https://github.com/mozilla/hubs/blob/9ea70d174202679da664904456866c5570a984c8/src/hub.js#L1065

Suggestion

I think using qsVREntryType if it's available (forcedVREntryType: qsVREntryType || "vr") as it's done for non-mobileVR sounds reasonable.

But I haven't followed all the related code yet. Please let me know if this change can cause any problems in certain scenarios.

Copy link
Contributor

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robertlong robertlong merged commit 56c0906 into master Feb 20, 2021
@robertlong robertlong deleted the UseQsVREntryType branch February 20, 2021 00:41
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

Successfully merging this pull request may close these issues.

3 participants