serverless-webrtc icon indicating copy to clipboard operation
serverless-webrtc copied to clipboard

Chrome error getting Offer

Open david4096 opened this issue 7 years ago • 4 comments

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)

david4096 avatar Jun 08 '18 21:06 david4096

@cjb I'm getting the same error. Any idea how to fix it? I'm very interested in exploring your solution to this problem.

monkybrain avatar Feb 11 '19 15:02 monkybrain

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

xak2000 avatar Mar 25 '19 19:03 xak2000

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

ogewan avatar Aug 24 '19 22:08 ogewan

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;

sandeepkambham08 avatar Aug 26 '20 03:08 sandeepkambham08