WIP: router-close-connections #2
@ -244,7 +244,7 @@ const createSendTransport = () => {
|
||||
})
|
||||
|
||||
producerTransport.on('produce', async (parameters, callback, errback) => {
|
||||
console.log(parameters)
|
||||
console.log('produce', parameters)
|
||||
|
||||
try {
|
||||
// tell the server to create a Producer
|
||||
@ -256,11 +256,13 @@ const createSendTransport = () => {
|
||||
rtpParameters: parameters.rtpParameters,
|
||||
appData: parameters.appData,
|
||||
}, ({ id }) => {
|
||||
console.log('[transport-produce] callback | id', id);
|
||||
// Tell the transport that parameters were transmitted and provide it with the
|
||||
// server side producer's id.
|
||||
callback({ id })
|
||||
})
|
||||
} catch (error) {
|
||||
console.log('ERROR | produce |', error);
|
||||
errback(error)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user