1
0

Update README.md

This commit is contained in:
Michael Verdi
2025-08-01 12:43:41 -05:00
committed by GitHub
parent 090ad5f315
commit ffb29bc4ec

View File

@@ -5,8 +5,9 @@ Got an immersive video you want people to see with the Apple Vision Pro or Meta
## How to use it ## How to use it
1. Drop the `vr180player` directory in the root level of your website. 1. Drop the `vr180player` directory in the root level of your website.
2. Add the player script `<script type="module" src="vr180-player.js"></script>` before the closing body tag. 2. Link to the player CSS file `<link rel="stylesheet" href="vr180player/vr180-player.css">`.
3. And use this HTML snippet to embed your video: 3. Add the player script `<script type="module" src="vr180-player.js"></script>` before the closing body tag.
4. And use this HTML snippet to embed your video:
``` ```
<div id="vr-container"> <div id="vr-container">
<video id="vr180" poster="poster.jpg" title="Demo Video" crossOrigin="anonymous" playsinline> <video id="vr180" poster="poster.jpg" title="Demo Video" crossOrigin="anonymous" playsinline>