1
0

Removed the video-info div, button is now visible but disabled when VR is not available, button label respected, title attribute of the video div is displayed as the video title in the UI.

This commit is contained in:
Michael Verdi
2025-06-24 19:09:00 -05:00
parent 8539a54f40
commit df75e2a32d
2 changed files with 6 additions and 52 deletions

View File

@@ -7,13 +7,11 @@
</head>
<body>
<div id="player-container">
<div id="video-info" style="display: none;"><!-- You can put whatever you like in this div. It's only shown when VR is available. -->
<video id="vrVideo" controls crossOrigin="anonymous" playsinline webkit-playsinline>
<video id="vrVideo" title="VR180 Video" controls crossOrigin="anonymous" playsinline webkit-playsinline>
<source src="REPLACE_THIS.mp4" type="video/mp4">
</video>
</div>
</div>
<button id="enterVrBtn" data-enter-vr-text="Enter VR">Enter VR</button>
<button id="enterVrBtn">Enter VR</button>
<script type="module" src="vr180-player.js"></script>
</body>
</html>