Skip to content

Instantly share code, notes, and snippets.

@DiegoRBaquero
Created May 8, 2016 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiegoRBaquero/aa975734db3616c921cec8468523d67d to your computer and use it in GitHub Desktop.
Save DiegoRBaquero/aa975734db3616c921cec8468523d67d to your computer and use it in GitHub Desktop.
Stream Alpine Timedrift WebTorrent with Webseed
<html>
<body>
<script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script>
<script>
var client = new WebTorrent()
client.add('https://webseed.btorrent.xyz/timedrift-alpine-4k-timelapse.mp4.torrent', function (torrent) {
// Got torrent metadata!
console.log('Client is downloading:', torrent.infoHash)
torrent.files[0].appendTo('body')
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment