ProjectRTC项目,报错RTCPeerConnection is not a constructor

google

建立快捷方式:

错误:

angular.js:11655 TypeError: RTCPeerConnection is not a constructor

    at new Peer (rtcClient.js:171)

    at addPeer (rtcClient.js:28)

    at Object.peerInit (rtcClient.js:155)

    at Object.rtc.view (app.js:74)

    at angular.js:12404

    at f (angular.js:21566)

    at b.$eval (angular.js:14466)

    at b.$apply (angular.js:14565)

    at HTMLTableCellElement. (angular.js:21571)

    at HTMLTableCellElement.c (angular.js:3032)

解决问题:

桌面建立快捷方式:


C:\Users\wangy\AppData\Local\Google\Chrome\Application\chrome.exe --unsafely-treat-insecure-origin-as-secure="http://webrtc123:3000" --max_old_space_size=4096


2修改hosts文件

路径在:

C:\Windows\System32\drivers\etc

修改

10.0.0.2  webrtc123

#10.0.0.2 是服务器的ip地址

你可能感兴趣的:(ProjectRTC项目,报错RTCPeerConnection is not a constructor)