-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathindex.html
89 lines (89 loc) · 3.03 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
<!doctype html>
{{> license}}
<html>
<head>
{{> meta title='Two-Way Stream Manager Test'}}
{{> header-scripts}}
{{> header-stylesheets}}
<style>
a {
color: #db1f26;
text-decoration: underline;
}
.red5pro-media-container {
height: auto;
}
.streams-container {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.stream-section {
flex: 1;
}
.stream-title {
border-bottom: 1px solid #999;
}
@media (max-width: 1023px) {
.stream-section {
width: 50%;
margin: 0 10px;
}
}
@media (max-width: 767px) {
.stream-section {
width: 100%;
margin: 0px auto;
}
.streams-container {
flex-direction: column;
}
.stream-section:nth-child(even) {
margin-top: 20px;
}
}
</style>
</head>
<body>
{{> top-bar }}
<div id="app">
{{> settings-link}}
<div class="ice-background">
<div class="test-notification">
<p>The Two-Way example requires access to a service that returns a stream listing. You may run into Cross-Origin Resource Sharing (<strong>CORS</strong>) issues if trying to use this example without the proper <strong>CORS</strong> settings provided by the server.</p>
<br/>
<p>It is recommended to view this example as part of the <code>webrtcexamples</code> webapp shipped with the <a href="https://account.red5.net/download" target="_blank">Red5 Pro Server</a>.</p>
</div>
</div>
{{> test-title title='Stream Manager Proxy Two-Way Test'}}
<div class="streams-container">
<div class="stream-section">
<p class="centered status-field stream-title">Publisher Stream: <span id="pub-stream-title">N/A</span></p>
<p id="pub-status-field" class="centered status-field">On hold.</p>
{{> statistics-field packets_field='Packets Sent'}}
<video id="red5pro-publisher"
class="red5pro-publisher"
controls autoplay muted playsinline
width="640" height="480">
</video>
</div>
<div class="stream-section">
<p class="centered status-field stream-title">Subscriber Stream: <span id="sub-stream-title">N/A</span></p>
<p id="sub-status-field" class="centered status-field">On hold.</p>
{{> statistics-field packets_field='Packets Received'}}
<video id="red5pro-subscriber"
controls autoplay playsinline
class="red5pro-subscriber red5pro-media red5pro-media-background"
width="640" height="480">
</video>
</div>
</div>
</div>
{{> footer}}
{{> body-scripts}}
{{> mobile-subscriber-util}}
<script src="../../script/publisher-status.js"></script>
<script src="../../script/subscription-status.js"></script>
<script src="index.js"></script>
</body>
</html>