Reputation: 59
I am building a video call app via web browser, a simple version of Googlemeet. I use WebRTC, Kurento, React Frontend, Express Backend, Socket.io Signaling Server
const io = new socketIO.Server(server, {
cors: {
origin: "http://localhost:5000",
methods: ["GET", "POST"],
},
});
const argv = minimist(process.argv.slice(2), {
default: {
as_uri: "http://localhost:3000",
ws_uri: "ws://localhost:8888/kurento",
},
});`
function getKurentoClient(cb) {
if (kurentoClient !== null) {
return cb(null, kurentoClient);
} else {
return kurento(argv.ws_uri, (error, _client) => {
if (error) {
callback(error);
} else {
kurentoClient = _client;
cb(null, _client);
}
});
}
}
The videos/audio just not show at all even when I permitted.
Upvotes: 4
Views: 199