Added logs for transport-produce
This commit is contained in:
parent
9470a2077f
commit
4a8afb7d47
10
app.js
10
app.js
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user