test
This commit is contained in:
parent
57108bf41e
commit
5b9768b5de
3
app.js
3
app.js
@ -228,6 +228,7 @@ peers.on('connection', async socket => {
|
||||
*/
|
||||
socket.on('createWebRtcTransport', async ({ sender }, callback) => {
|
||||
try {
|
||||
console.log('@@@ socket.id', socket.id);
|
||||
const callId = socketDetails[socket.id];
|
||||
console.log(`[createWebRtcTransport] socket ${socket.id} | sender ${sender} | callId ${callId}`);
|
||||
if (sender) {
|
||||
@ -677,7 +678,7 @@ const createWebRtcTransportLayer = async (callId, callback) => {
|
||||
|
||||
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-createWebRtcTransport
|
||||
let transport = await videoCalls[callId].router.createWebRtcTransport(webRtcTransport_options)
|
||||
console.log(`callId: ${callId} | transport id: ${transport.id}`)
|
||||
console.log(`@@@ callId: ${callId} | transport id: ${transport.id}`)
|
||||
|
||||
// Handler for when DTLS(Datagram Transport Layer Security) changes
|
||||
transport.on('dtlsstatechange', dtlsState => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user