WebRTC-Docker
WebRTC-Docker copied to clipboard
chrome61 不支持非https调用getUserMedia
Piasy你好,有幸学习您的博客。按照博客使用docker 配置apprtc server,遇到两个问题, 一、进入房间提示: [Deprecation] getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details. 二、ice连接失败:Failed to load http://xxx:3033/iceconfig?key=none: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx:8080' is therefore not allowed access. The response had HTTP status code 404. 我使用的Chrome版本 61.0.3163.100(正式版本) (32 位)
抱歉呀,我这个 apprtc-server 目前只搭配安卓版客户端测试过,HTTPS 的问题是已知的,ICE 问题应该不麻烦,只是跨域了。如果你想在浏览器内使用,可以琢磨怎么加上 HTTPS 支持,应该不麻烦,只是我最近没时间搞了。
我编译出来官方的Android客户端也出现了ice连接失败的问题,AppRTC客户端的对话框上弹出了,Non--200 response when requresting TURN server from http://192.168.9.123:3033/iceconfig?key=none:HTTP/1.1 404 NOT FOUND,这里需要修改文中提到的connection.setDoOutput(true);,重新编译就可以了。我用这个Docker中的系统,用Firefox浏览器可以正常通话,并且可以与修改过后的Android进行视频。Chrome是不行的,因为HTTPS的关系。