Statistics
| Branch: | Revision:

janus-gateway / html / streamingtest.html @ 70e8fc9c

History | View | Annotate | Download (4.54 KB)

1
<!DOCTYPE html>
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta charset="utf-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
<title>Janus WebRTC Gateway: Streaming Demo</title>
8
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/3.4.3/adapter.min.js" ></script>
9
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js" ></script>
10
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.2/js/bootstrap.min.js"></script>
11
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.1.0/bootbox.min.js"></script>
12
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js"></script>
13
<script type="text/javascript" src="janus.js" ></script>
14
<script type="text/javascript" src="streamingtest.js"></script>
15
<script>
16
        $(function() {
17
                $(".navbar-static-top").load("navbar.html", function() {
18
                        $(".navbar-static-top li.dropdown").addClass("active");
19
                        $(".navbar-static-top a[href='streamingtest.html']").parent().addClass("active");
20
                });
21
                $(".footer").load("footer.html");
22
        });
23
</script>
24
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/cerulean/bootstrap.min.css" type="text/css"/>
25
<link rel="stylesheet" href="css/demo.css" type="text/css"/>
26
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.2/css/font-awesome.min.css" type="text/css"/>
27
</head>
28
<body>
29

    
30
<a href="https://github.com/meetecho/janus-gateway"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 1001;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
31

    
32
<nav class="navbar navbar-default navbar-static-top">
33
</nav>
34

    
35
<div class="container">
36
        <div class="row">
37
                <div class="col-md-12">
38
                        <div class="page-header">
39
                                <h1>Plugin Demo: Streaming
40
                                        <button class="btn btn-default" autocomplete="off" id="start">Start</button>
41
                                </h1>
42
                        </div>
43
                        <div class="container" id="details">
44
                                <div class="row">
45
                                        <div class="col-md-12">
46
                                                <h3>Demo details</h3>
47
                                                <p>This demo showcases the functionality provided by the Streaming plugin.
48
                                                In particular, it provides three different streaming approaches, namely:</p>
49
                                                <p><ol>
50
                                                        <li>An on-demand stream originated by a file (a song, in this case):
51
                                                        different users accessing this stream would receive a personal view
52
                                                        of the stream itself.</li>
53
                                                        <li>A pseudo-live stream, still originated by a file (an audio recording
54
                                                        of a radio running commentary): different users accessing this stream
55
                                                        would all receive the same, shared view of the stream.</li>
56
                                                        <li>A live stream, originated by a gstreamer script: as for the pseudo-live
57
                                                        stream, different users will get the same feed.</li>
58
                                                </ol></p>
59
                                                <p>You can try them all within the same session: just choose the stream
60
                                                you're interested in and press the <code>Watch</code> button to start
61
                                                the playout. Stopping it will allow you to switch to a different one.</p>
62
                                                <p>Press the <code>Start</code> button above to launch the demo.</p>
63
                                        </div>
64
                                </div>
65
                        </div>
66
                        <div class="container hide" id="streams">
67
                                <div class="row">
68
                                        <div class="col-md-6">
69
                                                <div class="panel panel-default">
70
                                                        <div class="panel-heading">
71
                                                                <h3 class="panel-title">Streams <i id="update-streams" class="fa fa-refresh" title="Update list of streams" style="cursor: pointer;"></i></h3>
72
                                                        </div>
73
                                                        <div class="panel-body" id="list">
74
                                                                <div class="btn-group btn-group-sm">
75
                                                                        <button class="btn btn-primary" autocomplete="off" id="watch">Watch or Listen</button>
76
                                                                        <div class="btn-group btn-group-sm">
77
                                                                                <button autocomplete="off" id="streamset" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
78
                                                                                        Streams list<span class="caret"></span>
79
                                                                                </button>
80
                                                                                <ul id="streamslist" class="dropdown-menu" role="menu">
81
                                                                                </ul>
82
                                                                        </div>
83
                                                                </div>
84
                                                        </div>
85
                                                </div>
86
                                        </div>
87
                                        <div class="col-md-6">
88
                                                <div class="panel panel-default">
89
                                                        <div class="panel-heading">
90
                                                                <h3 class="panel-title">Stream <span class="label label-info hide" id="status"></h3>
91
                                                        </div>
92
                                                        <div class="panel-body" id="stream"></div>
93
                                                </div>
94
                                        </div>
95
                                </div>
96
                        </div>
97
                </div>
98
        </div>
99

    
100
        <hr>
101
        <div class="footer">
102
        </div>
103
</div>
104

    
105
</body>
106
</html>