-
Notifications
You must be signed in to change notification settings - Fork 141
/
index.html
77 lines (59 loc) · 2.05 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
---
layout: default
---
<div id="home-banner">
<img id="home-logo" src="{{ site.baseurl }}/assets/logo.svg" alt="Magnet Player icon">
<h2>Stream torrents directly from your browser</h2>
</div>
<hr>
<form id="magnet-input">
<input name="torrentId" placeholder="magnet:"><button type="submit">Play</button>
</form>
<div id="hero">
<div id="output">
<div id="progressBar"></div>
<!-- The video player will be added here -->
</div>
<!-- Statistics -->
<div id="status">
<div>
<span class="show-leech">Downloading </span>
<span class="show-seed">Seeding </span>
<code id="streamedFileName"></code>
<span class="show-leech"> from </span>
<span class="show-seed"> to </span>
<code id="numPeers">0 peers</code>
</div>
<div>
<code id="downloaded"></code> of <code id="total"></code> - <span id="remaining"></span>
</div>
<div>
↓ <code id="downloadSpeed">0 b/s</code> / <code id="uploadSpeed">0 b/s</code> ↑
</div>
<div id="share-clipboard">
<p>Share this video:</p>
<input id="share-url" type="text" readonly><button id="share-url-btn" class="btn" type="button" data-toggle="tooltip" title="Copy to clipboard" data-clipboard-target="#share-url"><img class="clippy" src="{{ site.baseurl }}/assets/clippy.svg" alt="Copy to clipboard"></button>
</div>
</div>
</div>
<hr>
<blockquote>
<p>What should I write in the input box above?</p>
</blockquote>
<h4>Find a torrent you want to watch, then copy-paste one of the following into the input box:</h4>
<ul>
<li>magnet uri (string)</li>
<li>torrent file (buffer)</li>
<li>info hash (hex string or buffer)</li>
<li>parsed torrent (from parse-torrent)</li>
<li>http/https url to a torrent file (string)</li>
</ul>
<blockquote>
<p>Can you give an example?</p>
</blockquote>
<h4>Sure! Try <em>copy-pasting</em> this https url of a torrent to the input box:</h4>
<pre>https://webtorrent.io/torrents/sintel.torrent</pre>
<blockquote>
<p>How can I say thanks?</p>
</blockquote>
<div class="kudos" data-amount="0" data-url="https://ferrolho.github.io{{ site.baseurl }}"></div>