comsume-undefined #22
1
app.js
1
app.js
@ -446,6 +446,7 @@ peers.on('connection', async socket => {
|
|||||||
*/
|
*/
|
||||||
socket.on('consumer-resume',() => {
|
socket.on('consumer-resume',() => {
|
||||||
try {
|
try {
|
||||||
|
console.log(`[consumer-resume] callId ${callId}`)
|
||||||
const callId = socketDetails[socket.id];
|
const callId = socketDetails[socket.id];
|
||||||
if (isInitiator(callId, socket.id)) {
|
if (isInitiator(callId, socket.id)) {
|
||||||
videoCalls[callId].initiatorConsumerVideo && videoCalls[callId].initiatorConsumerVideo?.resume();
|
videoCalls[callId].initiatorConsumerVideo && videoCalls[callId].initiatorConsumerVideo?.resume();
|
||||||
|
|||||||
|
Loading…
Reference in New Issue
Block a user
Check for
videoCalls[callId].initiatorConsumerVideo
is redundant.