enorrmann / youshark

14 stars 4 forks source link

How do I actually use that? #3

Open d33tah opened 8 years ago

d33tah commented 8 years ago

Hi,

I'm having problems getting this player to work. Does it explain INFO hash of an MP3 to work? I tried entering 47F8B51B33A96886BEBECED2625B83F1970E89CF as a test but I've got nothing in JS console apart from "loading hash 47F8B51B33A96886BEBECED2625B83F1970E89CF". Could you add some debug info?

Cheers, d33tah

enorrmann commented 8 years ago

how are you serving your mp3 ? I tested it with http://btorrent.xyz you also can drag and drop files to the player to start serving them, and this will also show your files hash

enorrmann commented 8 years ago

how are you serving your mp3 ? I tested it with http://btorrent.xyz you also can drag and drop files to the player to start serving them, and this will also show your files hash

enorrmann commented 8 years ago

you can also activate webtorrent's debug info by typing this in the browser's console localStorage.debug = '*'

d33tah commented 8 years ago

Here's what I got from console:

webtorrent new webtorrent (peerId 2d5757303039362d613966626538353230653937, nodeId 26eff27f65a71843ee11e01ad5ee3fffdc10d047, port 0) +0ms
localStorage.debug = '*'

"*"
script.js:35 loading hash 47F8B51B33A96886BEBECED2625B83F1970E89CF
webtorrent.min.js:4 webtorrent add +7s
webtorrent.min.js:4 webtorrent:torrent [2d57573] new torrent +1ms
webtorrent.min.js:4 bittorrent-tracker new client 47f8b51b33a96886bebeced2625b83f1970e89cf +12ms
webtorrent.min.js:4 bittorrent-tracker setInterval 900000 +0ms
webtorrent.min.js:4 bittorrent-tracker send `start` +1ms
d33tah commented 8 years ago

As for "how am I serving then" - @enorrmann, I don't understand the question. I just enter 47F8B51B33A96886BEBECED2625B83F1970E89CF (hash I found on The Pirate Bay) and click load.

enorrmann commented 8 years ago

ohhhh that's why this is not working. you should read the docs about webtorrent webtorrent is a diffrent implementation of the protocol and it doesn't connect to bit torrent clients it only connects to web torrent clients, so your files must be served on some web torrent server, not on the "classic" torrent network hope this helps clarify the concepts :smile:

d33tah commented 8 years ago

@enorrmann

Ah! So basically, having 384 seeders in BitTorrent doesn't guarantee that any of them seed over WebTorrent?Is there any MP3 I could test it on and rely on it being online of the time (i.e. being popular enough so there's always at least few people sharing it over WebTorrent)?

enorrmann commented 8 years ago

nope, bitt torrents seeders are completely unrelated to web torrent popularity aside, there are 2 complete separate networks

d33tah commented 8 years ago

Oh! I didn't know that, thanks for explaining. I guess I'll need to read up on WebTorrent.