自2016年起,微软Microsoft、Google、apple和业界标准要求此类操作需要SSL加密才能体验。
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.