简体   繁体   中英

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.. :(

在此处输入图片说明

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?

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. Eg try

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM