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) } })