From 6682dd9482cf75a27b15dcd95bd0c076d4291fb7 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Sat, 3 Sep 2022 09:35:27 +0300 Subject: [PATCH] Added logs on producer produce --- public/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.js b/public/index.js index 1524bb6..f96ae84 100644 --- a/public/index.js +++ b/public/index.js @@ -244,7 +244,7 @@ const createSendTransport = () => { }) producerTransport.on('produce', async (parameters, callback, errback) => { - console.log(parameters) + console.log('produce', parameters) try { // tell the server to create a Producer @@ -256,11 +256,13 @@ const createSendTransport = () => { rtpParameters: parameters.rtpParameters, appData: parameters.appData, }, ({ id }) => { + console.log('[transport-produce] callback | id', id); // Tell the transport that parameters were transmitted and provide it with the // server side producer's id. callback({ id }) }) } catch (error) { + console.log('ERROR | produce |', error); errback(error) } })