Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't streaming video? #658

Closed
andyngdz opened this issue Mar 4, 2016 · 4 comments
Closed

Can't streaming video? #658

andyngdz opened this issue Mar 4, 2016 · 4 comments

Comments

@andyngdz
Copy link

@andyngdz andyngdz commented Mar 4, 2016

  • WebTorrent version: 0.82.0
  • Node.js version:4.3.0
  • Browser name/version (if using WebTorrent in the browser):Google Chorme 48.0.2564.116 m

I have link torrent: http://owshared.com/data/torrent/94ED169C8B5B3600C77EAB8408F5C3E5E7C7C1D5/Intruders (2015).torrent

And code:
` function createClient() {
var client = window.client = new WebTorrent();
client.on('warning', onWarning);
client.on('error', onError);
torrent = client.add('http://owshared.com/data/torrent/94ED169C8B5B3600C77EAB8408F5C3E5E7C7C1D5/Intruders (2015).torrent', onTorrent);
}

function onTorrent() {
for (var i = 0; i < torrent.files.length; i++) {
if (ifVideo(torrent.files[i].path)) {
var files = window.files = torrent.files[i];
files.renderTo('#video', onError);
files.on('download', onProgress)
break;
}
}
}`

image

And html after renderTo:
<video id="video" autoplay="" controls="" data-reactid=".0.0.0.0.0.2" src="blob:http%3A//owshared.com/a96319c3-3904-4a36-8a8e-9be3c86faa11"></video>

And status debug:
`
webtorrent new webtorrent (peerId 2d5757303038312d663365613335393538313563, nodeId a974af88d699ec5491175ba56c21ac67f12d4c44) +0ms
ping:1

webtorrent.min.js:4 webtorrent new webtorrent (peerId 2d5757303038312d343166346530376635366637, nodeId 740b1b933491180caa4060d6bfc20efaed610706) +13s

webtorrent.min.js:4 webtorrent add +2m

webtorrent.min.js:4 webtorrent:torrent [35366637] new torrent +2ms

webtorrent.min.js:4 bittorrent-swarm new swarm (i 94ed169c8b5b3600c77eab8408f5c3e5e7c7c1d5 p 2d5757303038312d343166346530376635366637) +131ms

webtorrent.min.js:4 webtorrent:torrent [35366637] got metadata +4ms

webtorrent.min.js:4 torrent-discovery setTorrent 94ed169c8b5b3600c77eab8408f5c3e5e7c7c1d5 +2ms

webtorrent.min.js:4 bittorrent-tracker new client 94ed169c8b5b3600c77eab8408f5c3e5e7c7c1d5 +1ms

webtorrent.min.js:4 bittorrent-tracker setInterval 900000 +3ms
webtorrent.min.js:4 bittorrent-tracker send start +1ms

webtorrent.min.js:4 webtorrent:torrent [35366637] verifying existing torrent data +4ms

webtorrent.min.js:4 webtorrent:torrent [35366637] done verifying +81ms

webtorrent.min.js:4 webtorrent:torrent [35366637] on store +1ms

webtorrent.min.js:4 webtorrent:torrent [35366637] select 0-1269 (priority 0) +0ms

webtorrent.min.js:4 webtorrent on torrent +2ms

webtorrent.min.js:4 render-media Use videostream package for Intruders.2015.720p.BluRay.x264-[YTS.AG].mp4 +2ms

webtorrent.min.js:4 webtorrent:torrent [35366637] select 0-1269 (priority 1) +2ms

webtorrent.min.js:4 webtorrent:torrent [35366637] critical 0-2 +4ms
`

It's not working. Something was wrong?. Please help me.

Thanks & Best Regards.

@ndm13

This comment has been minimized.

Copy link

@ndm13 ndm13 commented Mar 4, 2016

The torrent you specified doesn't have any WebRTC trackers. You would have to add those yourself, but only those with the modified torrent would be able to view it. Another way around this is to implement webtorrent-hybrid instead of standard webtorrent, since webtorrent-hybrid supports UDP seeding.

On another note, it's probably not the best idea to post torrents of copyrighted material when asking for help. If you're testing, use something you own or something open source. I'd recommend the Sintel torrent WebTorrent hosts or its magnet link as they're well-seeded and open-source, or grabbing a bunch of media files and loading them into BTorrent and using the resulting torrent file/magnet link.

See also: #466

@andyngdz

This comment has been minimized.

Copy link
Author

@andyngdz andyngdz commented Mar 4, 2016

Thanks @ndm13 ,

I will use https://webtorrent.io/torrents/sintel.torrent for testing.

Sorry about my mistake. I respect copyrights.

Best Regards.

@andyngdz andyngdz closed this Mar 4, 2016
@andyngdz

This comment has been minimized.

Copy link
Author

@andyngdz andyngdz commented Mar 5, 2016

Hi @ndm13 ,

Sorry for me reopen this ticket.

I use infoHash for testing: AC418DB33FA5CEA4FAB11BC58008FE08F291C9BE

But I get error. You can view images below:

image
image
image
image
image
image
image

Thanks & hope reply from you.
Regards.

@andyngdz andyngdz reopened this Mar 5, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 7, 2016

Do not use WebTorrent for copyright infringement.

@feross feross closed this Mar 7, 2016
@webtorrent webtorrent locked and limited conversation to collaborators Mar 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.