MozillaReality / immersive-custom-elements

Immersive Custom Elements
https://mixedreality.mozilla.org/immersive-custom-elements/examples/index.html
Mozilla Public License 2.0
134 stars 8 forks source link

Enable old iPhone to run video-360 demo #81

Closed takahirox closed 4 years ago

takahirox commented 4 years ago

This PR resolves #66 by replacing the link to video-360 demo from examples/index.html with another one playing smaller video for old iPhone/iPod touch.

Alternate is replacing the url to video in examples/video-360.html but I wanted to keep example html files as simple as possible so I did in examples/index.html.

The detection is very rough. I determine iPhone/iPod touch with screen.height <= 667 as an old iPhone. Maybe we need more precise detection later.

https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Displays/Displays.html