Added logs

This commit is contained in:
Sergiu Toma 2022-08-05 11:43:37 +03:00
parent d07df95652
commit e07ffb3181
2 changed files with 4 additions and 0 deletions

View File

@ -20821,10 +20821,12 @@ const getLocalStream = () => {
}
const goConnect = () => {
console.log('[goConnect] device:', device);
device === undefined ? getRtpCapabilities() : goCreateTransport()
}
const goCreateTransport = () => {
console.log('[goCreateTransport] IS_PRODUCER:', IS_PRODUCER);
IS_PRODUCER ? createSendTransport() : createRecvTransport()
}

View File

@ -162,10 +162,12 @@ const getLocalStream = () => {
}
const goConnect = () => {
console.log('[goConnect] device:', device);
device === undefined ? getRtpCapabilities() : goCreateTransport()
}
const goCreateTransport = () => {
console.log('[goCreateTransport] IS_PRODUCER:', IS_PRODUCER);
IS_PRODUCER ? createSendTransport() : createRecvTransport()
}