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 upWebTorrent Issues in Firefox, Safari etc. #1606
Comments
This comment has been minimized.
This comment has been minimized.
|
You need to check the CORS settings of the seeding sever (with WebTorrent Desktop). Hope that helps. I managed to make it work with WebTorrent Desktop seeding from Windows server . |
This comment has been minimized.
This comment has been minimized.
thanks! i'll try do it. your torrents work in Firefox and Safari? With only WebTorrent Desktop seeding server and without other peers? |
This comment has been minimized.
This comment has been minimized.
sorry, tell me pls, if i use WebTorrent Desktop on Windows or Linux server and not have any services, where i need setting up CORS? I need install nginx or..? |
This comment has been minimized.
This comment has been minimized.
Yes I am using WebTorrent Desktop on Windows to create the torrents and seed them. On the same machine I then use an IIS server as a webseed (to serve the .mp4 files). It works great on Safari, Edge, Chrome and Firefox. You should include webtorrent from the CDN : and make sure to allow your origin (the site from which the videos will be played) in your CORS settings. The These CORS settings must be set on the server which is serving the webseed (ws=http...) files (in my case the IIS server). |
This comment has been minimized.
This comment has been minimized.
Thanks! Can yoy please show me your player code working on Firefox and Chrome? I use samples from github but receive error that "not can load from url magnet:" |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hello! Please help me deal with the problem WebTorrent.
On the webtorrent.io website, the video is played in Chrome 73.0.38,73.0.36, Opera 58.0.31, Safari 12.1, 12.0.3, Firefox 66.02, 67.0b6 Android, IOS browsers (only after full video download).
We installed WebTorrent Desktop on a separate server and start seeding few videos. Installed uWT tracker on another server (for now without ssl - only ws: //). WebTorrent connects to the tracker.
We used several player examples, for example:
also tried claprr, videojs, plyr players, and html5 player - the result is the same -
The request from an outside source is blocked: The policy of one source prohibits reading a remote resource on a magnet:?xt=urn:btih:FFECB9R120022E63CC6395638434467416687B82&dn=720p.mp4&tr=ws%3A%2F%2Fdomain.com%3A8000. (Reason: CORS request is not made by http).
ICE failed, add a TURN server and see about:webrtc for more details
Successfully compiled asm.js code (total compilation time 1ms) webtorrent.min.js
[Error] Failed to load resource: URL not supported (magnet:?xt=urn:btih:FFECB9R120022E63CC6395638434467416687B82&dn=720p.mp4&tr=ws%3A%2F%2Fdomain.com%3A8000, line 0)
[Error] Unhandled Promise Rejection: TypeError: Argument 1 ('options') to RTCPeerConnection.createOffer must be a dictionary (x10)
[Error] Unhandled Promise Rejection: TypeError: Argument 1 ('options') to RTCPeerConnection.createOffer must be a dictionary
rejectPromise
reject
_createOffer (webtorrent.min.js:7:14960)
onnegotiationneeded (webtorrent.min.js:7:10602)
We tried to connect the webtorrent.min.js library of different versions - 0.3 and 0.98 - the result is the same.
Please tell me, the webtorrent.io website works and loads quickly, and works only in Chrome on its server with its torrent