forked from AgoraIO/Advanced-Video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (139 loc) · 6.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Screen Sharing</title>
</head>
<body class="agora-theme">
<div class="navbar-fixed">
<nav class="agora-navbar">
<div class="nav-wrapper agora-primary-bg valign-wrapper">
<h5 class="left-align">Screen Sharing</h5>
<a href="https://github.com/AgoraIO/Advanced-Video/tree/master/Web/Agora-Screen-Sharing-Web-Webpack" class="aperture">
<span class="github"></span>
</a>
</div>
</nav>
</div>
<form id="form" class="row col l12 s12">
<div class="row container col l12 s12" style="min-width: 1435px; display: flex">
<div class="col" style="min-width: 433px; max-width: 443px;">
<div class="card" style="margin-top: 0px; margin-bottom: 0px;">
<div class="row card-content" style="margin-bottom: 0px; margin-top: 10px;">
<div class="input-field">
<label for="appID" class="active">App ID</label>
<input type="text" placeholder="App ID" name="appID">
</div>
<div class="input-field">
<label for="channel" class="active">Channel</label>
<input type="text" placeholder="channel" name="channel">
</div>
<div class="input-field">
<label for="token" class="active">Token</label>
<input type="text" placeholder="token" name="token">
</div>
<div class="row col">
<button class="btn btn-raised btn-primary waves-effect waves-light" id="join">JOIN</button>
<button class="btn btn-raised btn-primary waves-effect waves-light" id="leave">LEAVE</button>
<button class="btn btn-raised btn-primary waves-effect waves-light" id="publish">PUBLISH</button>
<button class="btn btn-raised btn-primary waves-effect waves-light" id="unpublish">UNPUBLISH</button>
</div>
<div class="row col" style="margin: 0">
<div class="switch">
<h6 style="color: rgba(0,0,0,.26);">Show Profile</h6>
<label>
<input id="show_profile" type="checkbox">
<span class="lever"></span>
</label>
</div>
<div class="switch">
<h6 style="color: rgba(0,0,0,.26);">Enable Audio</h6>
<label>
<input id="enable_audio" name="screenAudio" type="checkbox" checked>
<span class="lever"></span>
</label>
</div>
</div>
</div>
</div>
<ul class="collapsible card agora-secondary-border" style="margin-top: .4rem; border: 1px ">
<li>
<div class="collapsible-header agora-secondary-bg">
<h8 class="center-align">ADVANCED SETTINGS</h8>
</div>
<div class="collapsible-body card-content">
<div class="row">
<div class="col s12">
<div class="input-field">
<label for="UID" class="active">UID</label>
<input type="number" placeholder="UID" name="uid">
</div>
<div class="input-field">
<label for="resolution" class="active">SCREEN SHARING RESOLUTION</label>
<select name="screenShareResolution" id="screenShareResolution"></select>
</div>
<div class="row col s12">
<div class="row">
<label for="mode" class="active">MODE</label>
</div>
<div class="row">
<label>
<input type="radio" class="with-gap" name="mode" value="live" checked />
<span>live</span>
</label>
<label>
<input type="radio" class="with-gap" name="mode" value="rtc" />
<span>rtc</span>
</label>
</div>
</div>
<div class="row col s12">
<div class="row">
<label for="codec" class="active">CODEC</label>
</div>
<div class="row">
<label>
<input type="radio" class="with-gap" name="codec" value="h264" checked />
<span>h264</span>
</label>
<label>
<input type="radio" class="with-gap" name="codec" value="vp8" />
<span>vp8</span>
</label>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="col">
<div class="video-grid" id="video">
<div class="video-view">
<div id="local_stream" class="video-placeholder"></div>
<div id="local_video_info" class="video-profile hide"></div>
<div id="video_autoplay_local" class="autoplay-fallback hide"></div>
</div>
</div>
</div>
</div>
</form>
<!-- notice for developer -->
<div id="warn" class="modal">
<div class="modal-content">
<div>
Note: <br/>
On Chrome, if you use the Agora Web SDK 2.5.2 or earlier, you need to add a Chrome extenstion for screen sharing, if you use the Agora Web SDK 2.6.0 or later, you don't need to add the extension.<br/>
For screen sharing on Firefox and Safari, see <a href="https://docs.agora.io/en/Interactive%20Broadcast/screensharing_web">Share the Screen</a>
</div>
</div>
<div class="modal-footer">
<a id="never_show" class="modal-close waves-effect waves-green btn light-blue darken-1" id="hide_modal">DON'T SHOW AGAIN</a>
<a id="sure" class="modal-close waves-effect waves-light btn light-blue darken-4" id="sure">SURE</a>
</div>
</div>
<!-- notice for developer -->
</body>
</html>