-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (40 loc) · 1.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark light">
<script src="./node_modules/eruda/eruda.js"></script>
<script>eruda.init();</script>
<script src="./webxdc.js"></script>
<script src="./main.js"></script>
<style>
.member {
display: inline-block;
border: 1px solid gray;
padding: 0.5rem;
}
</style>
</head>
<body>
<p>Warning: the audio/video data you send is as persistent as text messages you send, so don't do anything embarassing, even if there is no one else on the call at the moment</p>
<p>As of 2023-11-15, sending audio/video won't work on unmodified Delta Chat clients</p>
<p>The delay is <i>at least</i> 10 seconds, so you gotta wait a bit</p>
<!-- Yep, the audio one is always disabled -->
<label>
<input id="includeAudio" type="checkbox" checked disabled></button>
🎤 include audio
</label>
<label>
<input id="includeVideo" type="checkbox" checked></button>
🎥 include video
</label>
<button id="startBroadcast" type="button">▶️ Start sending my media</button>
<button id="stopBroadcast" disabled type="button">⏹ Stop my media</button>
<!-- This is for when the videos refuse to autoplay.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play#usage_notes -->
<button id="startOthersStreams" type="button">👀 Start playing other's streams</button>
<section id="videos">
<h2>Room</h2>
</section>
</body>
</html>