LH-276: Add close-producer event handler; Update client #30
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LH-276-close-producer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -446,0 +415,4 @@
!!videoCalls[callId].router.canConsume({
producerId: videoCalls[callId].initiatorAudioProducer.id,
rtpCapabilities,
});
canConsumeAudioReceiver
andcanConsumeAudioInitiator
canConsumeAudio
andcanConsumeVideo
are very similar and very hard to distinguish if something is wrong, extract it in a function and use it in all 4 placesinitCanConsume(producer, callId, rtpCapabilities)
!!
is necessary in all places@ -477,0 +461,4 @@
videoCalls[callId].receiverConsumerVideo && videoCalls[callId].receiverConsumerVideo.resume();
videoCalls[callId].receiverConsumerAudio && videoCalls[callId].receiverConsumerAudio.resume();
}
} catch (error) {
isInitiatorValue
we can assignconsumerVideo
andconsumerAudio
and call resume on themLet's test it well before merging.