-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.html
63 lines (63 loc) · 1.9 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
<!doctype html>
{{> license}}
<html>
<head>
{{> meta title='WebRTC Publish Mute Test'}}
{{> header-scripts}}
{{> header-stylesheets}}
<style>
.control-container {
display: flex;
flex-direction: row;
background-color: #dbdbdb;
padding: 20px;
justify-content: center;
}
.control-container > button:nth-child(even) {
margin-left: 20px;
}
.hidden-post {
display: none;
}
@media (max-width:510px) {
.control-container {
flex-direction: column;
}
.control-container > button:nth-child(even) {
margin-left: 0px;
margin-top: 20px;
}
}
</style>
</head>
<body>
{{> top-bar }}
<div id="app">
{{> settings-link}}
{{> test-info testTitle='Publish Mute Test (WebRTC)'}}
<div class="stream-section">
{{> status-field-publisher}}
{{> statistics-field packets_field='Packets Sent'}}
<div class="centered">
<video id="red5pro-publisher" class="red5pro-publisher"
controls autoplay playsinline muted>
</video>
</div>
<div class="centered">
<!-- Moving Mute over to client side, which will POST mute to server and shut off sending packets. -->
<p class="control-container hidden-post">
<button id="mute-audio-button" class="ui-button">Mute Audio (Server)</button>
<button id="mute-video-button" class="ui-button">Mute Video (Server)</button>
</p>
<p class="control-container">
<button id="mute-audio2-button" class="ui-button">Mute Audio (Client)</button>
<button id="mute-video2-button" class="ui-button">Mute Video (Client)</button>
</p>
</div>
</div>
</div>
{{> footer}}
{{> body-scripts}}
<script src="index.js"></script>
</body>
</html>