195 lines
4.3 KiB
HTML
195 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Re-Commander — Telepresence Mode</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
header {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.telecom-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Full-screen video area */
|
|
.video-fullscreen {
|
|
flex: 1;
|
|
position: relative;
|
|
background: #000;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#camera-wrap {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
background: #000;
|
|
}
|
|
|
|
#camera-feed {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
#camera-no-feed {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Top Control Bar */
|
|
.telecom-top-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 16px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#btn-back-home {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.telecom-title {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.telecom-status {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Bottom Control Bar */
|
|
.telecom-bottom-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.bar-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.bar-label {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.telecom-bottom-bar button {
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#video-quality-select {
|
|
padding: 6px 8px;
|
|
background: var(--surface2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#video-quality-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div id="status-dot"></div>
|
|
<h1>Re<span>-Commander</span> — Telepresence</h1>
|
|
<span id="status-label">Connecting…</span>
|
|
<span id="hotword-indicator"></span>
|
|
</header>
|
|
|
|
<div class="telecom-container">
|
|
|
|
<!-- Top Control Bar -->
|
|
<div class="telecom-top-bar">
|
|
<button id="btn-back-home">← Back to Home</button>
|
|
<div class="telecom-title">🎥 Telepresence Stream</div>
|
|
<div class="telecom-status" id="telecom-status">Ready</div>
|
|
</div>
|
|
|
|
<!-- Full-screen Video -->
|
|
<div class="video-fullscreen">
|
|
<div id="camera-wrap">
|
|
<img id="camera-feed" alt="Telepresence feed" style="display:none;">
|
|
<div id="camera-no-feed">
|
|
<div style="font-size:40px;">📹</div>
|
|
<div>No camera feed</div>
|
|
<div style="font-size:11px;">Click restart video below to start broadcasting</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bottom Control Bar -->
|
|
<div class="telecom-bottom-bar">
|
|
<div class="bar-group">
|
|
<label class="bar-label">Quality:</label>
|
|
<select id="video-quality-select">
|
|
<option value="highRes">High</option>
|
|
<option value="medRes" selected>Medium</option>
|
|
<option value="lowRes">Low</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="bar-group" style="margin-left:auto; gap: 8px;">
|
|
<button id="btn-play-eye-anim">👁 Play Eye</button>
|
|
<button id="btn-video-start" style="background:var(--success);border-color:var(--success);">▶ Start Video</button>
|
|
<button id="btn-video-stop" class="danger">■ Stop</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="telepresence.js"></script>
|
|
|
|
</body>
|
|
</html>
|
|
|