-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
187 lines (178 loc) · 5.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
/>
<title>Microsoft identity platform</title>
<link rel="SHORTCUT ICON" href="./favicon.svg" type="image/x-icon" />
<!-- adding Bootstrap 4 for UI components -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="/">Microsoft identity platform</a>
<div class="btn-group ml-auto dropleft">
<button type="button" id="signIn" class="btn btn-secondary">
Sign-in
</button>
<button type="button" id="signOut" class="btn btn-success d-none">
Sign-out
</button>
</div>
</nav>
<br />
<h5 id="title-div" class="card-header text-center">
Vanilla JavaScript single-page application secured with MSAL.js
</h5>
<h5 id="welcome-div" class="card-header text-center d-none"></h5>
<br />
<h4>Azure Communication Services</h4>
<h1>1:1 Video Calling Quickstart</h1>
<div id="configSection">
<div style="border: 1px solid gray; padding: 10px;">
<h3>Via Teams User ID</h3>
<div style="margin-bottom: 1em; width: 800px">
<input
id="user-token"
type="text"
disabled
placeholder="Teams/AAD Access Token"
style="width: 300px"
/>
<button id="token-get" type="button">Login</button>
(<a href="https://jwt.io" target="jwt">jwt.io</a>)
</div>
<button id="token-get-acs-user" type="button">
Get ACS Access Token from User Token
</button>
</div>
</div>
<br/>
<div style="border: 1px solid gray; padding: 10px">
<h3>Via ACS ID</h3>
<div style="margin-bottom: 1em; width: 800px">
<input
id="comm-id"
type="text"
disabled
placeholder="ACS Communications ID"
style="width: 300px"
/>
<button id="commid-get" type="button">Create Comm ID</button>
</div>
<button id="token-get-acs-comm" type="button">
Get ACS Access Token from Comm ID
</button>
</div>
</div>
<br/>
<div style="margin-bottom: 1em; width: 800px">
<input
id="acs-token"
type="text"
placeholder="ACS access token"
style="width: 300px"
/>
<button id="call-agent-create" type="button">
Create Call Agent
</button>
</div>
<input
id="callee-id-input"
type="text"
placeholder="Who would you like to call?"
style="margin-bottom: 1em; width: 200px"
/>
<div>
<button id="call-button" type="button" disabled="true">start call</button>
<button id="hang-up-button" type="button" disabled="true">hang up</button>
<button id="start-Video" type="button" disabled="true">
start video
</button>
<button id="stop-Video" type="button" disabled="true">stop video</button>
</div>
<div>Local Video</div>
<div
style="
height: 200px;
width: 300px;
background-color: black;
position: relative;
"
>
<div
id="myVideo"
style="
background-color: black;
position: absolute;
top: 50%;
transform: translateY(-50%);
"
></div>
</div>
<div>Remote Video</div>
<div
style="
height: 200px;
width: 300px;
background-color: black;
position: relative;
"
>
<div
id="remoteVideo"
style="
background-color: black;
position: absolute;
top: 50%;
transform: translateY(-50%);
"
></div>
</div>
<table id="table-div" class="table table-hover d-none">
<thead id="table-head-div">
<tr>
<th>Claim Type</th>
<th>Value</th>
</tr>
</thead>
<tbody id="table-body-div"></tbody>
</table>
<p id="token-div"></p>
<div id="footer" class="footer-copyright text-center py-3 d-none">
<p>
If you would like to learn more about the claims in your token, copy
your <b>id token</b> string in console and head over to the
<a href="https://jwt.ms/" target="”_blank”">jwt.ms</a>
</p>
</div>
<!-- importing bootstrap.js and supporting js libraries -->
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"
></script>
<script src="./bundle.js"></script>
</body>
</html>