42 lines
1.8 KiB
HTML
42 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>BridgeSwarm – Screenshare</title>
|
||
<link rel="stylesheet" href="style.css">
|
||
</head>
|
||
<body>
|
||
<h1>BridgeSwarm – Screenshare</h1>
|
||
<p class="status" id="status">Load the extension, then join a topic. Share your screen or watch another tab's stream.</p>
|
||
<div class="row">
|
||
<input type="text" id="topic" placeholder="Topic (e.g. my-screenshare)" value="bridge-swarm-screenshare">
|
||
<button class="primary" id="btnJoin">Join</button>
|
||
<button class="danger" id="btnLeave" disabled>Leave</button>
|
||
</div>
|
||
<div class="peers" id="peers">Peers: 0</div>
|
||
<div class="peers" id="publicKey">Your public key: (join to generate)</div>
|
||
<div class="row">
|
||
<button class="primary" id="btnShare" disabled>Share my screen</button>
|
||
<button class="secondary" id="btnStopShare" disabled style="display: none;">Stop sharing</button>
|
||
</div>
|
||
<div class="video-wrap" id="videoWrap">
|
||
<video id="remoteVideo" autoplay playsinline muted controls></video>
|
||
<div class="placeholder-block" id="placeholderBlock">
|
||
<span class="placeholder" id="videoPlaceholder">Join a topic. Share your screen, or wait for a peer to share.</span>
|
||
<button class="primary" id="btnPlay" style="display: none;">Play</button>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<button class="secondary" id="btnPip" disabled style="display: none;">Picture-in-Picture</button>
|
||
</div>
|
||
<p class="stream-state" id="streamState"></p>
|
||
<div class="preview-wrap" id="previewWrap" style="display: none;">
|
||
<span>Your shared screen (local preview):</span>
|
||
<video id="localPreview" autoplay playsinline muted controls></video>
|
||
</div>
|
||
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html>
|