93 lines
2.3 KiB
HTML
93 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="Content-Security-Policy"
|
|
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self';" />
|
|
<title>Tauri GST Signalling + Chat</title>
|
|
</head>
|
|
|
|
<body>
|
|
<main class="container">
|
|
<h1>POC 3 - Chat</h1>
|
|
|
|
<section class="card">
|
|
<h2>Signalling + Chat</h2>
|
|
|
|
<div class="actions">
|
|
<input id="chat-display-name" type="text" placeholder="Display name"
|
|
value="sinus" />
|
|
<button id="chat-connect-btn" type="button">Connect
|
|
signalling</button>
|
|
<button id="chat-disconnect-btn" type="button" disabled>Disconnect</button>
|
|
</div>
|
|
|
|
<div class="chat-grid">
|
|
<div>
|
|
<h3>Peers</h3>
|
|
<pre id="chat-peers">[]</pre>
|
|
</div>
|
|
|
|
<div>
|
|
<h3>Logs</h3>
|
|
<pre id="chat-logs">Ready.</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<input id="chat-input" type="text" placeholder="Message" />
|
|
<button id="chat-send-btn" type="button" disabled>Send chat</button>
|
|
</div>
|
|
|
|
<pre id="chat-messages">No messages yet.</pre>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Video Preview</h2>
|
|
|
|
<div class="preview-wrap">
|
|
<img id="video-preview" alt="Video preview" />
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Audio + Video</h2>
|
|
|
|
<div class="actions">
|
|
<button id="start-av-btn" type="button">Start AV</button>
|
|
<button id="stop-av-btn" type="button" disabled>Stop AV</button>
|
|
</div>
|
|
|
|
<pre id="av-status">Ready.</pre>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Video</h2>
|
|
|
|
<div class="actions">
|
|
<button id="start-video-btn" type="button">Start video</button>
|
|
<button id="stop-video-btn" type="button" disabled>Stop
|
|
video</button>
|
|
</div>
|
|
|
|
<pre id="video-status">Ready.</pre>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Audio</h2>
|
|
|
|
<div class="actions">
|
|
<button id="start-audio-btn" type="button">Start audio</button>
|
|
<button id="stop-audio-btn" type="button" disabled>Stop
|
|
audio</button>
|
|
</div>
|
|
|
|
<pre id="audio-status">Ready.</pre>
|
|
</section>
|
|
</main>
|
|
<script type="module" src="main.ts" defer></script>
|
|
</body>
|
|
</html>
|