Search code examples
htmlhtml5-videop2pbittorrent

How to stream video via bittorrent in an HTML5 <video>-tag?


How to use p2p-next.org´s SwarmPlayer v2..?

I´am trying to use this for an site, Do not have the money to pay for alot of bandwidth.

So I need steam the videos via bittorrent.

I´am using Ubuntu 12.10 for my testing.

Below is the HTML5-code.

    <video style="width:544px;height:304px;">   
    <source src="tribe://http://url2torrent.net/torrent/511640ccc3acb404f246f391.torrent">
    <source src="http://upload.wikimedia.org/wikipedia/commons/3/38/Moederdag_%281925%29.ogv" >
    </video>     

The key part beside the <video>-tag is the tribe://:

<source src="tribe://http://url2torrent.net/torrent/511640ccc3acb404f246f391.torrent">

When I load the HTML5-page and go to: http://127.0.0.1:6877/webUI

Then I can´t see the video download.. :(

enter image description here

I got it to download the video ones... after an hour time.. for only 45mb.. not god..

So is the SwarmPlayer-p2p-style just slow?

Can it be speed up?

Or is there an better player to do this?


Solution

  • There appears to be something wrong with the HTTP fallback. If you try with an Ogg video directly seeded by BitTorrent (and a playtime field) it still works. E.g. try

    http://ca.isohunt.com/download/280788549/5aa6a160a7470b00e4b3d0ee824333fb7c934ca7.torrent

    as source. See c:\Users\you\AppData\Roaming\Mozilla\Firefox\Profiles\zzzzz.default\extensio ns\[email protected]\bgprocess\SwarmEngine.exe.log (check swarmengined script for Linux location) for the log of the BitTorrent engine.