hublin icon indicating copy to clipboard operation
hublin copied to clipboard

Error: easyrtc.setGotMedia is not a function

Open MaskerJ opened this issue 8 years ago • 4 comments

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

MaskerJ avatar Jun 16 '16 05:06 MaskerJ

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.

RockyMeadow avatar Jun 20 '16 08:06 RockyMeadow

Sorry @MaskerJ @RockyMeadow , also opened #33 with the same issue. Do you know if there is a solution in the works?

futurealecks avatar Jul 22 '16 13:07 futurealecks

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?

futurealecks avatar Aug 08 '16 14:08 futurealecks

@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

HassenMaamri avatar Sep 01 '16 09:09 HassenMaamri