简体   繁体   English

如何在HTML5中通过bittorrent传输视频 <video> -标签?

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

How to use p2p-next.org´s SwarmPlayer v2 ..? 如何使用p2p-next.org的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. 所以我需要通过bittorrent蒸视频。

I´am using Ubuntu 12.10 for my testing. 我正在使用Ubuntu 12.10进行测试。

Below is the HTML5-code. 以下是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>     

The key part beside the <video> -tag is the tribe:// : <video> -tag旁边的关键部分是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 当我加载HTML5页面并转到: http://127.0.0.1:6877/webUI : http://127.0.0.1:6877/webUI : 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.. 一个小时的时间后,我下载了视频....仅45mb ..不是上帝。

So is the SwarmPlayer-p2p-style just slow? 那么SwarmPlayer-p2p风格是否很慢?

Can it be speed up? 可以加快速度吗?

Or is there an better player to do this? 还是有更好的球员做到这一点?

There appears to be something wrong with the HTTP fallback. HTTP回退似乎有问题。 If you try with an Ogg video directly seeded by BitTorrent (and a playtime field) it still works. 如果您尝试使用由BitTorrent直接播种的Ogg视频(以及播放时间字段),则该视频仍然有效。 Eg try 例如尝试

http://ca.isohunt.com/download/280788549/5aa6a160a7470b00e4b3d0ee824333fb7c934ca7.torrent 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. 请参阅c:\\ Users \\ you \\ AppData \\ Roaming \\ Mozilla \\ Firefox \\ Profiles \\ zzzzz.default \\ extensio ns \\ tribe@p2pnext.org \\ bgprocess \\ SwarmEngine.exe.log(检查swarmengined脚本中的Linux位置)以获取日志BitTorrent引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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