Compare commits

..

No commits in common. "eb5aa12d65724dfc798d70a5e8da58c4eaf73c63" and "5f8f2ab44cd231c390c0ea94b0a5e63c779e339c" have entirely different histories.

3 changed files with 5 additions and 9 deletions

View File

@ -32,8 +32,4 @@ accountId = account id of the unit on which you are doing the test
producer = it will always be true because you are the producer producer = it will always be true because you are the producer
(it's possible to put false, but then you have to have another client with producer true) (it's possible to put false, but then you have to have another client with producer true)
assetName = asset name of the unit on which you are doing the test assetName = asset name of the unit on which you are doing the test
assetType = asset type of the unit on which you are doing the test assetType = asset type of the unit on which you are doing the test
### Demo project
The demo project used initially and then modified for our needs `https://github.com/jamalag/mediasoup2`

8
app.js
View File

@ -186,10 +186,10 @@ peers.on('connection', async socket => {
try { try {
const callId = socketDetails[socket.id]; const callId = socketDetails[socket.id];
console.log(`[createWebRtcTransport] sender ${sender} | callId ${callId}`); console.log(`[createWebRtcTransport] sender ${sender} | callId ${callId}`);
if (sender && !videoCalls[callId].producerTransport) { if (sender) {
videoCalls[callId].producerTransport = await createWebRtcTransportLayer(callId, callback) videoCalls[callId].producerTransport = await createWebRtcTransportLayer(callId, callback);
} else if (!sender && !videoCalls[callId].consumerTransport) { } else {
videoCalls[callId].consumerTransport = await createWebRtcTransportLayer(callId, callback) videoCalls[callId].consumerTransport = await createWebRtcTransportLayer(callId, callback);
} }
} catch (error) { } catch (error) {
console.log(`ERROR | createWebRtcTransport | callId ${callId} | sender ${sender} | ${error.message}`); console.log(`ERROR | createWebRtcTransport | callId ${callId} | sender ${sender} | ${error.message}`);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 571 KiB