hublin
hublin copied to clipboard
Error: easyrtc.setGotMedia is not a function
when I run this project in IPv6 ,the browser will throw this error:
Error: easyrtc.setGotMedia is not a function setGotMedia@http://[2001:xxx:xxx::xxxx]:8080/components/angular-liveconference/dist/live-conference.all.js:1599:9, and the browser can not call camera ,there is no tips to call camera
Hi @MaskerJ, thank you for your report. This error seems to be related to the problem of socketio not working. Hence, easyrtc can not connect to its server, then caused setGotMedia
undefined. We will see to this issue right away.
Sorry @MaskerJ @RockyMeadow , also opened #33 with the same issue. Do you know if there is a solution in the works?
I'm having the same issue running IPv4. I get it working with Docker but doing a manual install I get same error:
angular.js:11655 TypeError: easyrtc.setGotMedia is not a function
at Object.setGotMedia
Anyone else?
@MaskerJ, we are working on fixing this problem, for now as a temporary solution you can go to the package.json
file under nodes_modules/om-websocket-server
and change the version of socket.io
to 1.4.0
then open node_moules/easyrtc/lib/easyrtc_default_options.js
and change line #68 from option.easyrtcidRegExp = /^[a-z0-9_.-]{1,32}$/i;
to option.easyrtcidRegExp = /^\/{1}#{1}[a-z0-9_.-]{1,32}$/i;
i hope this helps