-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (92 loc) · 5.14 KB
/
index.html
File metadata and controls
96 lines (92 loc) · 5.14 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style/style.css">
<link rel="icon" type="image/png" href="media/icon.png" />
<title>STREAMPLAYER</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
</head>
<body>
<div id="header" class="no-selection">
<h1>STREAMPLAYER
</h1>
</div>
<div id="content">
<div id="playerdiv">
<img src="media/placeholder.png" />
<video class="player" id="hlsPlayer" controls width="100%"></video>
<video class="player" id="dashPlayer" style="width:100%" data-dashjs-player controls autoplay></video>
</div>
<a href="" id="copyLink"></a>
</div>
<div id="settings">
<div>
<div id="input">
<fieldset>
<legend class="no-selection"><img src="media/film.png" /> <strong>1.</strong> Stream</legend>
<p class="no-selection">Set your own URL or select one from the dropdown. The example URLs are all from the SRG(Schweizerische Radio- und Fernsehgesellschaft), the Swiss Broadcasting Corporation.</p>
<input placeholder="Stream URL" id="url" type='text' />
<select id="urlSelector">
<option disabled selected>Examples</option>
<optgroup label="Video">
<option class="subGroup" disabled>HLS</option>
<option value="http://lsv.swisstxt.ch/lsv/smil:StudiocamSRF3/playlist.m3u8">Studiocam</option>
<option value="http://lsv.swisstxt.ch/rts/smil:RTSun/playlist.m3u8">RTSun</option>
<option value="http://lsv.swisstxt.ch/rts/smil:RTSdeux/playlist.m3u8">RTSdeux</option>
<option class="subGroup" disabled>DASH</option>
<option value="http://lsv.swisstxt.ch/lsv/smil:StudiocamSRF3/manifest.mpd">Studiocam</option>
<option value="http://lsv.swisstxt.ch/rts/smil:RTSun/manifest.mpd">RTSun</option>
<option value="http://lsv.swisstxt.ch/rts/smil:RTSdeux/manifest.mpd">RTSdeux</option>
</optgroup>
<optgroup label="Audio">
<option class="subGroup" disabled>HLS</option>
<option value="http://lsaplus.swisstxt.ch/audio/drs1_96.stream/playlist.m3u8">SRF1</option>
<option value="http://lsaplus.swisstxt.ch/audio/drs2_96.stream/playlist.m3u8">SRF2</option>
<option value="http://lsaplus.swisstxt.ch/audio/drs3_96.stream/playlist.m3u8">SRF3</option>
</optgroup>
</select>
</fieldset>
</div>
<div class="buttons">
<fieldset>
<legend class="no-selection"><img src="media/videoplayer.png" /> <strong>2.</strong> Player</legend>
<button name="hls" type="button" id="hlsButton" class="selButton m3u8 disabled" disabled="true">hls.js</button>
<button name="dash" type="button" id="dashButton" class="selButton mpd disabled" disabled="true">dash.js</button>
</fieldset>
</div>
</div>
</div>
<a id="showHelp" class="no-selection">Help?</a>
<div id="InvURL" title="ERROR">
<p>The URL you gave me wasn't a good one! :( Make sure that it contains '.mpd' or '.m3u8'.</p>
</div>
<div id="help" title="">
<h3><img src="media/film.png" /> SUPPORTED STREAMS</h3>
<ul>
<li><strong>HLS</strong>(.m3u8)</li>
<li><strong>DASH</strong>(.mpd)</li>
</ul>
<h3><img src="media/videoplayer.png" /> AVAILABLE PLAYERS</h3>
<ul>
<li><a href="https://github.com/video-dev/hls.js/tree/master" target="_blank">hls.js</a>(HLS)</li>
<li><a href="https://github.com/Dash-Industry-Forum/dash.js" target="_blank">dash.js</a>(DASH)</li>
</ul>
<h3><img src="media/news.png" /> HOW TO USE IT</h3>
<p>In fact, using this page is pretty simple. If you can't figure it out on your own, I have bad news for you.<sup>just kidding, you're a wonderful person</sup></p>
<p>So here's a brief explanation:</p>
<ol>
<li>In the first box you can define which stream you want to use. You have two possibilities: Set your own or choose one of ours.</li>
<span>Remember: The only possible sources are HLS and DASH.</span>
<li>According to the type of stream you choose in step 1, only the players which can actually play the type of stream are going to be activated. Choose a player and enjoy.</li>
<li>I don't have a third advice, but two seemed like not enough.</li>
</ol>
</div>
<button name="danielify" type="button" id="danielifyButton">DANIELIFY!</button>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/hls.js/latest/hls.min.js"></script>
<script type="text/javascript" src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
<script type="text/javascript" src="scripts/streamplayer.js"></script>
</body>
</html>