Added logs for transport-produce

This commit is contained in:
Sergiu Toma 2022-09-30 10:07:30 +03:00
parent 9470a2077f
commit 4a8afb7d47

10
app.js
View File

@ -232,6 +232,16 @@ peers.on('connection', async socket => {
socket.on('transport-produce', async ({ kind, rtpParameters, appData }) => {
try {
const callId = socketDetails[socket.id];
console.log('kind typeof', typeof kind);
console.log('kind', kind);
console.log('rtpParameters typeof', typeof rtpParameters);
console.log('rtpParameters', rtpParameters);
console.log('appData typeof', typeof appData);
console.log('appData', appData);
if (typeof kind === 'string') kind = JSON.parse(kind);
if (typeof rtpParameters === 'string') rtpParameters = JSON.parse(rtpParameters);