test
This commit is contained in:
parent
26345bd22b
commit
b1dbc401a5
4
app.js
4
app.js
@ -299,7 +299,7 @@ peers.on('connection', async socket => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// const router = videoCalls[callId].router;
|
// const router = videoCalls[callId].router;receiverSocket
|
||||||
|
|
||||||
// router.observer.on("newtransport", (transport) => {
|
// router.observer.on("newtransport", (transport) => {
|
||||||
// transport.observer.on("newproducer", (producer) => {
|
// transport.observer.on("newproducer", (producer) => {
|
||||||
@ -644,6 +644,8 @@ const consumeAudio = async (callId, socketId, rtpCapabilities) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isInitiator = (callId, socketId) => {
|
const isInitiator = (callId, socketId) => {
|
||||||
|
console.log('videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id);
|
||||||
|
console.log('socketId', socketId);
|
||||||
return (videoCalls[callId].initiatorSocket.id === socketId);
|
return (videoCalls[callId].initiatorSocket.id === socketId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user