LH-276: Update producer close event handler
This commit is contained in:
parent
c65dcf1729
commit
7ec9f4ebde
4
app.js
4
app.js
@ -487,6 +487,7 @@ peers.on('connection', async (socket) => {
|
|||||||
- When consuming on consumerTransport, it is initially done with paused: true, here we will resume
|
- When consuming on consumerTransport, it is initially done with paused: true, here we will resume
|
||||||
- For the initiator we resume the initiatorConsumerAUDIO/VIDEO and for receiver the receiverConsumerAUDIO/VIDEO
|
- For the initiator we resume the initiatorConsumerAUDIO/VIDEO and for receiver the receiverConsumerAUDIO/VIDEO
|
||||||
*/
|
*/
|
||||||
|
try {
|
||||||
socket.on('consumer-resume', () => {
|
socket.on('consumer-resume', () => {
|
||||||
try {
|
try {
|
||||||
const callId = socketDetails[socket.id];
|
const callId = socketDetails[socket.id];
|
||||||
@ -513,6 +514,9 @@ peers.on('connection', async (socket) => {
|
|||||||
console.error(`[consumer-resume] | ERROR | callId: ${socketDetails[socket.id]} | isInitiator: ${isInitiator} | error: ${error.message}`);
|
console.error(`[consumer-resume] | ERROR | callId: ${socketDetails[socket.id]} | isInitiator: ${isInitiator} | error: ${error.message}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.log('akakakakakak', error.mesage);
|
||||||
|
}
|
||||||
|
|
||||||
socket.on('close-producer', ({ callId, kind}) => {
|
socket.on('close-producer', ({ callId, kind}) => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user