Add log on createRecvTransport
This commit is contained in:
parent
b64c49c1cd
commit
d67debc70b
16
app.js
16
app.js
@ -253,8 +253,8 @@ const createWebRtcTransportLayer = async (callId, callback) => {
|
|||||||
preferUdp: true,
|
preferUdp: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('webRtcTransport_options', webRtcTransport_options);
|
// console.log('webRtcTransport_options', webRtcTransport_options);
|
||||||
console.log('router', router, '| router[callId]', router[callId]);
|
// console.log('router', router, '| router[callId]', router[callId]);
|
||||||
|
|
||||||
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-createWebRtcTransport
|
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-createWebRtcTransport
|
||||||
let transport = await router[callId].createWebRtcTransport(webRtcTransport_options)
|
let transport = await router[callId].createWebRtcTransport(webRtcTransport_options)
|
||||||
@ -270,15 +270,19 @@ const createWebRtcTransportLayer = async (callId, callback) => {
|
|||||||
console.log('transport closed')
|
console.log('transport closed')
|
||||||
})
|
})
|
||||||
|
|
||||||
// send back to the client the following prameters
|
const params = {
|
||||||
callback({
|
|
||||||
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#TransportOptions
|
|
||||||
params: {
|
|
||||||
id: transport.id,
|
id: transport.id,
|
||||||
iceParameters: transport.iceParameters,
|
iceParameters: transport.iceParameters,
|
||||||
iceCandidates: transport.iceCandidates,
|
iceCandidates: transport.iceCandidates,
|
||||||
dtlsParameters: transport.dtlsParameters,
|
dtlsParameters: transport.dtlsParameters,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('params', params);
|
||||||
|
|
||||||
|
// send back to the client the following prameters
|
||||||
|
callback({
|
||||||
|
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#TransportOptions
|
||||||
|
params
|
||||||
})
|
})
|
||||||
|
|
||||||
return transport
|
return transport
|
||||||
|
Loading…
Reference in New Issue
Block a user