Open david4096 opened 6 years ago
@cjb I'm getting the same error. Any idea how to fix it? I'm very interested in exploring your solution to this problem.
The firefox doesn't work also:
TypeError: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL. serverless-webrtc.js:163:17
createLocalOffer http://127.0.0.1:8080/js/serverless-webrtc.js:163
navigator.getUserMedia is deprecated, so I would guess that this project is pretty outdated.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia
https://www.reddit.com/r/ipfs/comments/8pi62d/ipfs_webrtc_chat/
From u/rictic
In Chrome 68 I get this stack trace in the console, and the offer never shows up when I click Create:
Uncaught RangeError: Maximum call stack size exceeded. at HTMLDivElement.trigger (jquery-2.0.0.js:4773) at Object.trigger (jquery-2.0.0.js:4502) at HTMLDivElement.<anonymous> (jquery-2.0.0.js:5055) at Function.each (jquery-2.0.0.js:590) at init.each (jquery-2.0.0.js:237) at init.trigger (jquery-2.0.0.js:5054) at init.jQuery.fn.(anonymous function) [as focus] (https://ipfs.io/ipfs/QmSJpwAeKraihyxpSHqAurautEbCU277UyBHUdaapbZX7F/apps/serverless-webrtc/js/jquery-2.0.0.js:6657:9) at HTMLDocument.<anonymous> (bootstrap.js:910) at HTMLDocument.dispatch (jquery-2.0.0.js:4618) at HTMLDocument.elemData.handle (jquery-2.0.0.js:4302)
I felt the same but it works fine even with that error. Wait for ~30sec after clicking 'CREATE' button. The offer will be populated then.
However, one update to make now is - Navigate to serverless-webrtc-master>js>serverless-webrtc.js file
On line 163 : Change - video.src = window.URL.createObjectURL(stream) To - video.srcObject = stream;
https://www.reddit.com/r/ipfs/comments/8pi62d/ipfs_webrtc_chat/
From u/rictic
In Chrome 68 I get this stack trace in the console, and the offer never shows up when I click Create: