-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.html
More file actions
118 lines (114 loc) · 6.48 KB
/
user.html
File metadata and controls
118 lines (114 loc) · 6.48 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<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="./call.css">
<script src="./index.js"></script>
</head>
<body onload="createCallframe()">
<div class="container">
<div id="wrapper" class="wrapper">
<!-- Start Call -->
<div id="start-container" class="start-container">
<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>
<!-- Error Message -->
<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>