-
Notifications
You must be signed in to change notification settings - Fork 36
/
index.html
218 lines (218 loc) · 7.37 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<html>
<head>
<title>Daily Prebuilt demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://unpkg.com/@daily-co/daily-js"></script>
<link rel="icon" type="image/png" href="./assets/favicon.png" />
<link rel="stylesheet" href="./index.css" />
<script src="./index.js"></script>
</head>
<body onload="createCallframe()">
<header class="header">
<div class="left-header">
<img
src="assets/daily_logo.svg"
class="daily-logo"
alt="Daily logo reads Daily"
/>
<strong>
<p class="header-title">Daily Prebuilt demo</p>
</strong>
</div>
<div class="right-header">
<a href="https://docs.daily.co/reference" target="_blank" class="link">
<button class="button docs-button white-button">
API docs
<img
class="arrow-icon"
src="/assets/new_tab_icon.png"
alt="Arrow icon points up and to the right"
/>
</button>
</a>
<span class="divider"></span>
<a href="https://github.com/daily-demos/prebuilt-ui" target="_blank">
<img
class="octocat"
src="assets/github_logo.png"
alt="GitHub logo Octocat"
/>
</a>
</div>
</header>
<div class="container">
<div id="wrapper" class="wrapper">
<div id="start-container" class="start-container">
<h1 class="title">Daily Prebuilt demo</h1>
<p class="prompt">
Start demo with a new unique room or paste in your own room URL.
</p>
<button
id="create-and-start"
class="button start-button"
onclick="createRoomAndStart()"
>
Create room and start
</button>
<p class="url-prompt">or</p>
<p
id="url-click"
class="url-prompt url-click show"
onclick="showRoomInput()"
>
Enter my room URL
</p>
<div id="url-form" class="url-form hide">
<label for="url-input"></label>
<input
type="text"
class="url-input"
id="url-input"
placeholder="Enter room URL..."
pattern="^(https:\/\/)?[\w.-]+(\.(daily\.(co)))+[\/\/]+[\w.-]+$"
/>
<button
id="join-call"
onclick="joinCall()"
class="button start-button disabled-button"
disabled
>
Join room
</button>
</div>
</div>
<div id="error-message" class="hide">
<h2 id="error-title" class="title error-title">Incorrect room URL</h2>
<p id="error-description" class="error-description">
Meeting link entered is invalid. Please update the room URL.
</p>
<button class="button white-button" onClick="tryAgain()">
Try Again
</button>
</div>
</div>
<div id="call-controls-wrapper" class="call-controls-wrapper hide">
<div class="call-controls">
<div class="controls-header">
<h3>Call overview</h3>
<p id="demo-countdown" class="demo-countdown"></p>
</div>
<div class="controls-copy-url">
<div class="copy-url-instructions">
<h3>Invite participants</h3>
<p>Share URL below to invite others</p>
</div>
<div class="copy-url-action">
<label for="copy-url"></label>
<input
type="text"
class="url-input"
id="copy-url"
placeholder="Copy this room URL"
pattern="^(https:\/\/)?[\w.-]+(\.(daily\.(co)))+[\/\/]+[\w.-]+$"
/>
<button
id="copy-url-button"
class="button copy-url-button"
onclick="copyUrl()"
>
Copy URL
</button>
</div>
</div>
<div class="controls-stats">
<dl>
<h3>Network stats</h3>
<div class="stats-wrapper">
<div class="stats-column">
<div class="stats-row">
<dt>Video sending</dt>
<dd id="video-send"></dd>
</div>
<div class="stats-row">
<dt>Video receiving</dt>
<dd id="video-receive"></dd>
</div>
</div>
<div class="stats-column">
<div class="stats-row">
<dt>Packet loss send</dt>
<dd id="video-packet-send"></dd>
</div>
<div class="stats-row">
<dt>Packet loss receiving</dt>
<dd id="video-packet-receive"></dd>
</div>
</div>
</div>
</dl>
</div>
<div class="controls-custom-example">
<h3>Example custom controls</h3>
<p>
You can also create your own meeting controls outside of the
callframe using daily-js.
</p>
<div class="custom-buttons">
<button
onclick="toggleCamera()"
class="button controls-button white-button"
>
Toggle camera
<img
src="/assets/camera_icon.png"
class="control-icon"
alt="Drawing of a camera"
/>
</button>
<button
onclick="toggleMic()"
class="button controls-button white-button"
>
Toggle mic
<img
src="/assets/mic_icon.png"
class="control-icon"
alt="Drawing of a microphone"
/>
</button>
<button
onclick="toggleScreenshare()"
class="button controls-button white-button"
>
Share screen
<img
src="/assets/screenshare_icon.png"
class="control-icon"
alt="Drawing of computer screen"
/>
</button>
<button
onclick="toggleFullscreen()"
class="button controls-button white-button"
>
Expand fullscreen
</button>
<button
onclick="toggleLocalVideo()"
class="button controls-button white-button"
id="local-video-button"
title="Hides the local participant's camera stream"
>
Hide local video
</button>
<button
id="participants-bar-button"
onclick="toggleParticipantsBar()"
class="button controls-button white-button"
title="Toggles the other participants' videos in Speaker View when three or more people are on the call"
>
Toggle other participants (in Speaker View)
</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>