Вопрос

Can I use torrent file with videos and this videos loaded in ? I have torrent with 3 videos. And I have one simply html page with video.js.

  • Video 1: Wellcome.wemb
  • Video 2: Introduction.webm
  • Video 3: What we play.webm

So... Can I load first video from torrent in video ?

Это было полезно?

Решение

You could use torque. It's not pure javascript, but quite powerful.

http://torque.bittorrent.com/labs/

Check out http://onehash.com/ for an example of exactly what you want to do.

For a pure javascript implementation (I believe limited to chrome), check out jstorrent:

https://github.com/kzahel/jstorrent

And here it is deployed: http://jstorrent.com/

Другие советы

You could do it manually or try writing some server software that extracts the torrent. If you find out how to do that, then try to do it ahead of time instead of each time at run-time.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top