Compare commits
No commits in common. "4a8afb7d477739fec8a44aa41ee026b4c49a4127" and "21e26d4be5ecd7c31ba29613e3890e03c54dc57d" have entirely different histories.
4a8afb7d47
...
21e26d4be5
15
app.js
15
app.js
@ -216,11 +216,11 @@ peers.on('connection', async socket => {
|
||||
try {
|
||||
const callId = socketDetails[socket.id];
|
||||
if (typeof dtlsParameters === 'string') dtlsParameters = JSON.parse(dtlsParameters);
|
||||
|
||||
|
||||
console.log(`[transport-connect] socket.id ${socket.id} | callId ${callId}`);
|
||||
await videoCalls[callId].producerTransport.connect({ dtlsParameters });
|
||||
} catch (error) {
|
||||
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`);
|
||||
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.stack}`);
|
||||
}
|
||||
});
|
||||
|
||||
@ -232,16 +232,6 @@ 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);
|
||||
|
||||
@ -396,6 +386,7 @@ const createWebRtcTransportLayer = async (callId, callback) => {
|
||||
dtlsParameters: transport.dtlsParameters,
|
||||
};
|
||||
|
||||
console.log(`createWebRtcTransportLayer | params.dtlsParameters ${params.dtlsParameters}`);
|
||||
// Send back to the client the params
|
||||
callback({ params });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user