This commit is contained in:
Sergiu Toma 2022-12-16 11:02:08 +02:00
parent bf65221664
commit 5abcddc115
3 changed files with 5 additions and 3 deletions

2
app.js
View File

@ -223,7 +223,7 @@ peers.on('connection', async socket => {
- If the client is producer(sender: true) then it will use parameters for device.createSendTransport(params) - If the client is producer(sender: true) then it will use parameters for device.createSendTransport(params)
- If the client is a consumer(sender: false) then it will use parameters for device.createRecvTransport(params) - If the client is a consumer(sender: false) then it will use parameters for device.createRecvTransport(params)
*/ */
socket.on('createWebRtcTransport', async (data, callback) => { socket.on('createWebRtcTransport1', async (data, callback) => {
try { try {
console.log('🟥 WARNING', JSON.stringify(data)); console.log('🟥 WARNING', JSON.stringify(data));
console.log('createWebRtcTransport-----------------------data', data); console.log('createWebRtcTransport-----------------------data', data);

View File

@ -20581,7 +20581,8 @@ const createSendTransport = () => {
// see server's socket.on('createWebRtcTransport', sender?, ...) // see server's socket.on('createWebRtcTransport', sender?, ...)
// this is a call from Producer, so sender = true // this is a call from Producer, so sender = true
console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!'); console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!');
socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => { // const data1 = { sender: 'true123', test: '123', sender1: true };
socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => {
console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`); console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`);

View File

@ -223,7 +223,8 @@ const createSendTransport = () => {
// see server's socket.on('createWebRtcTransport', sender?, ...) // see server's socket.on('createWebRtcTransport', sender?, ...)
// this is a call from Producer, so sender = true // this is a call from Producer, so sender = true
console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!'); console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!');
socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => { // const data1 = { sender: 'true123', test: '123', sender1: true };
socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => {
console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`); console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`);