直接本地磁盘打开页面,是可以正常跑通demo的,但是把demo放到apache服务器上,就无法使用了
Uncaught (in promise) TypeError: Cannot read property 'enumerateDevices' of undefined
at trtc.js:1
at S (trtc.js:1)
at Generator._invoke (trtc.js:1)
at Generator.e.<computed> [as next] (trtc.js:1)
at Xe (trtc.js:1)
我有两个模块:
var client = require('./handlers/client.js');
var server = require('./handlers/server.js');
server.createClient()
client.js
var client = function(){
console.log("New client");
}
exports = module.exports = client;
server.js
var server = {
createClient: funct