forked from EXT/VR180-Web-Player
58
test-pages/test-local-media.html
Normal file
58
test-pages/test-local-media.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>Local Media Test</title>
|
||||
<link rel="stylesheet" href="./demo.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="demo-page">
|
||||
<div class="demo-shell demo-player">
|
||||
<header class="demo-topbar">
|
||||
<div>
|
||||
<h1 class="demo-brand">Local Media</h1>
|
||||
<p class="demo-kicker">Select a local SBS image or video, choose the projection, then launch it.</p>
|
||||
</div>
|
||||
<a class="demo-back" href="./index.html">Back</a>
|
||||
</header>
|
||||
|
||||
<p class="demo-xr-status" data-demo-xr-status>Checking immersive WebXR support...</p>
|
||||
|
||||
<section class="demo-local-panel" aria-label="Local media launcher">
|
||||
<label class="demo-field">
|
||||
<span>Media file</span>
|
||||
<input data-local-media-file type="file" accept="image/*,video/*">
|
||||
</label>
|
||||
|
||||
<label class="demo-field">
|
||||
<span>Projection</span>
|
||||
<select data-local-media-projection>
|
||||
<option value="plane">3D plane</option>
|
||||
<option value="vr180">VR180 3D</option>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<p class="demo-local-name" data-local-media-name>No file selected</p>
|
||||
|
||||
<div class="demo-local-preview" data-local-media-preview>
|
||||
<p>Preview will appear here.</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="demo-local-launch"
|
||||
data-vr-web-launcher
|
||||
data-local-media-launch
|
||||
data-projection="plane"
|
||||
disabled>
|
||||
Launch selected media
|
||||
</button>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<script type="module" src="./demo-xr-status.js"></script>
|
||||
<script type="module" src="./local-media-picker.js"></script>
|
||||
<script type="module" src="../vr180player/vr180-player.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user