forked from webex/webex-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (78 loc) · 2.64 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
<!DOCTYPE html>
<html>
<head>
<title>Sample: Local Mute/Unmute</title>
</head>
<body>
<h1>Local Mute/Unmute</h1>
<p>This sample demonstrates local mute and unmute</p>
<form id="credentials">
<fieldset>
<legend>Credentials</legend>
<input
id="access-token"
name="accessToken"
placeholder="Your access token"
type="text">
<input id="connect" title="connect" type="submit" value="connect">
<p id="connection-status">disconnected</p>
</fieldset>
</form>
<form id="dialer">
<fieldset>
<legend>Dialer</legend>
<input
id="invitee"
name="invitee"
placeholder="Person ID or Email Address or SIP URI or Room ID"
type="text">
<input title="dial" type="submit" value="dial">
</fieldset>
</form>
<form id="call-controls">
<fieldset>
<legend>Call Controls</legend>
<button id="hangup" title="hangup" type="button">cancel/hangup</button>
<button id="stop-sending-audio" title="stop sending audio" type="button">stop sending audio</button>
<button id="start-sending-audio" title="start sending audio" type="button">start sending audio</button>
<button id="stop-sending-video" title="stop sending video" type="button">stop sending video</button>
<button id="start-sending-video" title="start sending video" type="button">start sending video</button>
</fieldset>
</form>
<div style="align-items: flex-start; display: flex; max-width: 100%">
<div style="flex: 1 1 auto">
<video style="width:50%" id="self-view" muted autoplay></video>
<table>
<tbody>
<tr>
<td>camera state</td>
<td id="camera-state"></td>
</tr>
<tr>
<td>microphone state</td>
<td id="microphone-state"></td>
</tr>
</tbody>
</table>
<div style="display: flex">
<div>
<p>Outbound Audio Stats</p>
<pre id="outgoing-audio-stats"></pre>
</div>
<div>
<p>Outbound Video Stats</p>
<pre id="outgoing-video-stats"></pre>
</div>
</div>
</div>
<div style="flex: 1 1 auto; width:50%" >
<audio id="remote-view-audio" autoplay></audio>
<video id="remote-view-video" autoplay></video>
</div>
</div>
<!-- /bundle.js is the bundled CiscoSpark JavaScript SDK -->
<script src="/bundle.js"></script>
<!-- app.js is your application code -->
<script src="app.js"></script>
</body>
</html>