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

Detect iPadOS as iOS #4700

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Detect iPadOS as iOS #4700

merged 1 commit into from
Oct 6, 2021

Conversation

takahirox
Copy link
Contributor

@takahirox takahirox commented Oct 1, 2021

We use A-Frame's iOS() to detect iOS. It seems to check if navigator.platform includes "iPad", "iPhone", or "iPod".

But on iPad navigator.platform (or navigator.userAgent) no longer include such words. Then workarounds patches for iOS in Hubs Client is no longer applied to iPad.

Now iPad runs on iPadOS which is separated from iOS. But I speculate the inside of iPadOS and iOS should be very similar and we should apply the workarounds for iOS to iPad.

iPad detection code is from https://stackoverflow.com/questions/57776001/how-to-detect-ipad-pro-as-ipad-using-javascript looks usable Currently there doesn't seem to be easy and clear way to detect iOS.

Currently Hubs seems to have issues that videos don't play smoothly and audio from videos doesn't come out on iPad. I confirmed they are resolved with this PR.

Maybe this PR can fix #2035

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.

Videos don't play on some iPads
1 participant