Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upStreaming - Status Code:101 Switching Protocols #396
Comments
This comment has been minimized.
This comment has been minimized.
|
This is expected. It's what Chrome shows when a WebSocket connection is active. WebSockets are used to communicate with a tracker server for finding peers. If you switch to the "Frames" tab (to the left of "Headers") you should see that data is sent to/from the tracker. |
This comment has been minimized.
This comment has been minimized.
|
Ok thanks for the speedy response! I can confirm there are readings in the frames panel, however the function is not being triggered. I waited for at least 10 mins and still nothing, which is why i thought it to be an issue. Please advise Thank you once again :) |
This comment has been minimized.
This comment has been minimized.
|
{ |
This comment has been minimized.
This comment has been minimized.
|
You can't just paste in any random magnet uri or .torrent file. Is the torrent being seeded by a webrtc-capable client, i.e. webtorrent-hybrid or instant.io? In the browser, WebTorrent can only download torrents that are explicitly seeded to web peers via a WebTorrent capable client. Desktop torrent clients need to support WebRTC to peer with web browsers. |
This comment has been minimized.
This comment has been minimized.
|
I was simply trying to test with a, yes random, torrent. I didnt realise that was th case. :/ Where would i get hold of an example torrent that works? |
This comment has been minimized.
This comment has been minimized.
|
You can seed any file by drag-and-dropping it onto https://instant.io On Thu, Aug 6, 2015 at 3:46 PM MrTibbles notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
ok cool, currently at my full time job, so can’t attempt to do so just yet. But thank you once again for the incredible service :)
|
This comment has been minimized.
This comment has been minimized.
|
ok cool, im now successfully getting the torrent, however now webtorrent is throwing an error when trying to pipe the file into the audio tag. Is this also expected? Uncaught TypeError: e.on is not a function56.c.pipe @ webtorrent.min.js:2(anonymous function) @ web-torrent-view.js:25o @ webtorrent.min.js:13(anonymous function) @ webtorrent.min.js:13187.i.emit @ webtorrent.min.js:8(anonymous function) @ webtorrent.min.js:5195.u.run @ webtorrent.min.js:8l @ webtorrent.min.js:8 |
This comment has been minimized.
This comment has been minimized.
|
What code are you using? |
This comment has been minimized.
This comment has been minimized.
|
I am using the example for streaming audio to player https://github.com/feross/webtorrent/blob/master/examples/browser-stream-to-audio.js https://github.com/feross/webtorrent/blob/master/examples/browser-stream-to-audio.js
|
This comment has been minimized.
This comment has been minimized.
|
Ah, this example is out of date. I just updated it: https://github.com/feross/webtorrent/blob/master/examples/browser-stream-to-video-or-audio.js |
This comment has been minimized.
This comment has been minimized.
|
Thanks, thats working now. Thank you once again Feross, your a dude :)
|
Firstly, love th project!
Basically I am trying to simply stream a torrent into an audio player, however i am getting:
Status Code:101 Switching Protocols
Any ideas as to why this would be occuring?
Thank you in advance :)