From 91b612785b2cd1fce077f6790e74f1658c85060b Mon Sep 17 00:00:00 2001 From: Aiden <68633820+awils27@users.noreply.github.com> Date: Wed, 10 Jun 2026 10:19:03 +1000 Subject: [PATCH] Initial build --- README.md | 56 +++--- index.html | 25 ++- vr180player/vr180-player.css | 85 ++++---- vr180player/vr180-player.js | 365 ++++++++++++++++++++++------------- 4 files changed, 318 insertions(+), 213 deletions(-) diff --git a/README.md b/README.md index f09c04a..2b6f0e4 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,45 @@ -# VR180 Web Player -A web-based video player for 180 degree, 3D video. +# VR Web Player +A CDN-friendly web player for side-by-side stereoscopic video. -Got an immersive video you want people to see with the Apple Vision Pro or Meta Quest headsets? Now you can put it on your website just like any other video! People will see the immersive 3D video if they have a capable headset or they'll get a 2D version on other devices. +The player supports two projection modes: + +- `vr180`: an immersive 180 degree stereoscopic hemisphere in WebXR, with a draggable rectilinear fallback on non-XR browsers. +- `plane`: a flat stereoscopic video plane in WebXR, with a normal flat left-eye fallback on non-XR browsers. ## How to use it -1. Link to the player CSS file ``. -2. Add the player script `` before the closing body tag. -3. And use this HTML snippet to embed your video: +Include the module script from your CDN. The script automatically loads its matching CSS file and image assets from the same folder. + +```html +
+ +
+ + ``` -
-