Moved callId in consumer-resume
This commit is contained in:
parent
c037240f47
commit
1b72941a32
2
app.js
2
app.js
@ -446,8 +446,8 @@ 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];
|
||||||
|
console.log(`[consumer-resume] callId ${callId}`)
|
||||||
if (isInitiator(callId, socket.id)) {
|
if (isInitiator(callId, socket.id)) {
|
||||||
videoCalls[callId]?.initiatorConsumerVideo?.resume();
|
videoCalls[callId]?.initiatorConsumerVideo?.resume();
|
||||||
videoCalls[callId]?.initiatorConsumerAudio?.resume();
|
videoCalls[callId]?.initiatorConsumerAudio?.resume();
|
||||||
|
Loading…
Reference in New Issue
Block a user