2013-02-09 99 views
1

如何使用p2p-next.org的SwarmPlayer v2 ..?如何通過HTML5中的bittorrent流式傳輸視頻<video> -tag?

我試圖用這個網站,沒有錢支付大量的帶寬。

所以我需要通過bittorrent蒸汽視頻。

我使用Ubuntu 12.10進行測試。

以下是HTML5代碼。

<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>  

<video> - 標籤旁邊的關鍵部分是tribe://

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

當我加載HTML5的頁面,然後轉到:http://127.0.0.1:6877/webUI

然後我不能看視頻下載.. :(

enter image description here

我得到了它的視頻下載的...一個小時的時間後..只有45MB ..不是上帝..

所以是SwarmPlayer-P2P式的只是慢?

它可以加快嗎?

或者是否有更好的選手來做到這一點?

回答

1

HTTP fallback似乎有問題。如果您嘗試使用由BitTorrent直接播種的Ogg視頻(以及播放時間字段),它仍然有效。例如。嘗試

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

作爲來源。請參閱c:\ Users \ you \ AppData \ Roaming \ Mozilla \ Firefox \ Profiles \ zzzzz.default \ extensio ns \ [email protected] \ bgprocess \ SwarmEngine.exe.log(針對Linux位置檢查swarmengined腳本)的BitTorrent引擎。

+0

Cool dude ..謝謝..你讓我的一天:)所以現在的代碼看起來像這樣:http://paste.ubuntu.com/1677806/ – Voidcode 2013-02-18 17:16:38

+0

你可以從洪流中播放任何Ogg視頻。如果知道持續時間,Firefox會更好。爲此,它取決於SwarmPlayer將設置的X-Content-Duration標題,如果在.torrent頂層有一個'playtime'鍵,並且持續時間爲[hh:] mm:ss時間指定。所以,採取任何Ogg流行音樂,添加一個播放時間,並且SwarmPlayer將會播放它。 – 2013-02-19 08:35:08

相關問題