jsxc / strophe.jinglejs

This package adds jingle.js to strophe.js
MIT License
7 stars 5 forks source link

Incompatibility JsSIP #5

Open diegobill opened 6 years ago

diegobill commented 6 years ago

I am using lib JsSIP version 0.3.7 and JSXC v3.3.0, but there a incompability between then, I receive this error when I make a call using JsSIP:

Error console developer tools:

6447jsxc.dep.js:41203 URL.createObjectURL(stream) is deprecated, please use elem.srcObject = stream instead.
(program):1163 Uncaught exceptionInjectedScript.RemoteObject @ (program):1163InjectedScript._wrapObject @ (program):377InjectedScript.wrapObject @ (program):298utils.deprecated @ jsxc.dep.js:41203URL.createObjectURL @ jsxc.dep.js:41300Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606setTimeout (async)(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1
(program):377 Uncaught exceptionInjectedScript._wrapObject @ (program):377InjectedScript.wrapObject @ (program):298utils.deprecated @ jsxc.dep.js:41203URL.createObjectURL @ jsxc.dep.js:41300Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318setTimeout (async)(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1
(program):298 Uncaught exceptionInjectedScript.wrapObject @ (program):298utils.deprecated @ jsxc.dep.js:41203URL.createObjectURL @ jsxc.dep.js:41300Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606setTimeout (async)(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1
(program):295 Uncaught exceptionInjectedScript.wrapObject @ (program):295utils.deprecated @ jsxc.dep.js:41203URL.createObjectURL @ jsxc.dep.js:41300Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606setTimeout (async)(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1
15jsxc.dep.js:41203 Uncaught exceptionutils.deprecated @ jsxc.dep.js:41203URL.createObjectURL @ jsxc.dep.js:41300Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318Object.defineProperty.set @ jsxc.dep.js:34606Object.defineProperty.set @ jsxc.dep.js:41318setTimeout (async)(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1(anonymous function) @ (program):1
jsxc.dep.js:41299 Uncaught RangeError: Maximum call stack size exceeded

I did this workaround of comment this two lines (https://github.com/diegobill/strophe.jinglejs/commit/5b01f3e1c7691ba70457a89cbcb65f44d44461a2) and the error was fix:

sualko commented 6 years ago

This error comes from the webrtc adapter and can probably be fixed with an update, because we are several versions behind. If you have time, please make an pr which updates all dependencies, otherwise you have to wait until next month, because I'm busy right now.