Debian Codegraph @

plinth/modules/janus/templates/janus_video_room.html

raw
1 {% comment %}
2 # SPDX-License-Identifier: AGPL-3.0-or-later
3
4 # This file based on example code from Janus which is
5 # licensed as follows.
6 #
7 # 2014-2025 Meetecho
8 #
9 # GPL-3 with OpenSSL exception
10 # If you modify this Program, or any covered work,
11 # by linking or combining it with OpenSSL
12 # (or a modified version of that library),
13 # containing parts covered by the terms of OpenSSL License,
14 # the licensors of this Program grant you
15 # additional permission to convey the resulting work.
16 # Corresponding Source for a non-source form of such a combination
17 # shall include the source code for the parts of openssl used
18 # as well as that of the covered work.
19 {% endcomment %}
20
21 {% load static %}
22 {% load i18n %}
23
24 <!DOCTYPE html>
25 <html>
26 <head>
27 <meta charset="utf-8">
28 <meta http-equiv="content-type" content="text/html; charset=utf-8">
29 <meta name="viewport" content="width=device-width, initial-scale=1">
30 <title>Janus Video Room</title>
31
32 <script src="/javascript/webrtc-adapter/adapter.min.js" ></script>
33 <script src="/javascript/jquery/jquery.min.js" ></script>
34 <script src="/javascript/popperjs2/popper.min.js"></script>
35 <script src="/javascript/jquery-blockui/jquery.blockUI.min.js" ></script>
36 <script src="/javascript/bootstrap5/js/bootstrap.min.js" ></script>
37 <script src="/javascript/bootbox/bootbox.min.js" ></script>
38 <script src="/javascript/toastr/toastr.min.js" ></script>
39 <script src="{% static 'janus/janus-freedombox-config.js' %}" ></script>
40 <script src="/javascript/janus-gateway/janus.min.js" ></script>
41 <script src="{% static 'janus/janus-video-room.js' %}" ></script>
42
43 <link rel="stylesheet"
44 href="/javascript/bootstrap5/css/bootstrap.css"
45 type="text/css">
46 <link rel="stylesheet" href="/javascript/toastr/toastr.min.css"
47 type="text/css">
48 <link rel="stylesheet"
49 href="{% static 'janus/janus-video-room.css' %}" type="text/css">
50 </head>
51
52 <body data-user-turn-config="{{ user_turn_config }}">
53 <div class="container" id="content" role="main">
54 <div class="row">
55 <div class="col-md-12">
56 <div class="pb-2 mt-4 mb-2 border-bottom">
57 <h1>Janus Video Room
58 <button class="btn btn-default" autocomplete="off"
59 id="start">Start</button>
60 </h1>
61 </div>
62 </div>
63
64 <div class="container" id="details">
65 <div class="row">
66 <div class="col-md-12">
67 <h3>Details</h3>
68 <p>To use the video room, just insert a username to join
69 the default room that is configured. This will add you
70 to the list of participants, and allow you to
71 automatically send your audio/video frames and receive
72 the other participants' feeds. The other participants
73 will appear in separate panels, whose title will be
74 the names they chose when registering at the video room.</p>
75 <p>Press the <code>Start</code> button above to launch
76 the video room.</p>
77 </div>
78 </div>
79 </div>
80
81 <div class="container mt-4 hide" id="videojoin">
82 <div class="row">
83 <span class="badge bg-info" id="you"></span>
84 <div class="col-md-12" id="controls">
85 <div class="input-group mt-3 mb-1 hide" id="registernow">
86 <span class="input-group-text">👤</span>
87 <input autocomplete="off" class="form-control"
88 autocomplete="off" type="text"
89 placeholder="Choose a display name"
90 id="username"
91 onkeypress="return checkEnter(this, event);"></input>
92 <span class="input-group-btn">
93 <button class="btn btn-success" autocomplete="off"
94 id="register">Join the room</button>
95 </span>
96 </div>
97 </div>
98 </div>
99 </div>
100
101 <div class="container mt-4 hide" id="videos">
102 <div class="row">
103 <div class="col-md-4">
104 <div class="card">
105 <div class="card-header">
106 <span class="card-title">
107 Local Video <span class="badge bg-primary hide"
108 id="publisher"></span>
109 <div class="btn-group btn-group-sm top-right hide">
110 <div class="btn-group btn-group-sm">
111 <button id="bitrateset" autocomplete="off"
112 class="btn btn-primary
113 dropdown-toggle"
114 data-bs-toggle="dropdown">
115 Bandwidth
116 </button>
117 <ul id="bitrate" class="dropdown-menu" role="menu">
118 <a class="dropdown-item" href="#" id="0">No limit</a>
119 <a class="dropdown-item" href="#" id="128">Cap to 128kbit</a>
120 <a class="dropdown-item" href="#" id="256">Cap to 256kbit</a>
121 <a class="dropdown-item" href="#" id="512">Cap to 512kbit</a>
122 <a class="dropdown-item" href="#" id="1024">Cap to 1mbit</a>
123 <a class="dropdown-item" href="#" id="1500">Cap to 1.5mbit</a>
124 <a class="dropdown-item" href="#" id="2000">Cap to 2mbit</a>
125 </ul>
126 </div>
127 </div>
128 </span>
129 </div>
130 <div class="card-body" id="videolocal"></div>
131 </div>
132 </div>
133 <div class="col-md-4">
134 <div class="card">
135 <div class="card-header">
136 <span class="card-title">
137 Remote Video #1 <span class="badge bg-info hide"
138 id="remote1"></span></span>
139 </div>
140 <div class="card-body relative" id="videoremote1"></div>
141 </div>
142 </div>
143 <div class="col-md-4">
144 <div class="card">
145 <div class="card-header">
146 <span class="card-title">
147 Remote Video #2 <span class="badge bg-info hide"
148 id="remote2"></span></span>
149 </div>
150 <div class="card-body relative" id="videoremote2"></div>
151 </div>
152 </div>
153 </div>
154 <div class="row">
155 <div class="col-md-4">
156 <div class="card">
157 <div class="card-header">
158 <span class="card-title">
159 Remote Video #3 <span class="badge bg-info hide"
160 id="remote3"></span></span>
161 </div>
162 <div class="card-body relative" id="videoremote3"></div>
163 </div>
164 </div>
165 <div class="col-md-4">
166 <div class="card">
167 <div class="card-header">
168 <span class="card-title">
169 Remote Video #4 <span class="badge bg-info hide"
170 id="remote4"></span></span>
171 </div>
172 <div class="card-body relative" id="videoremote4"></div>
173 </div>
174 </div>
175 <div class="col-md-4">
176 <div class="card">
177 <div class="card-header">
178 <span class="card-title">
179 Remote Video #5 <span class="badge bg-info hide"
180 id="remote5"></span></span>
181 </div>
182 <div class="card-body relative" id="videoremote5"></div>
183 </div>
184 </div>
185 </div>
186 </div>
187 </div>
188 </div>
189
190 <div class="footer">
191 <a href="{% static 'jslicense.html' %}" data-jslicense="1">
192 {% trans "JavaScript license information" %}</a>
193 </div>
194
195 </body>
196 </html>