diff --git a/public/bundle.js b/public/bundle.js index 13152d4..228a74b 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20359,7 +20359,8 @@ module.exports = { const io = require('socket.io-client') const mediasoupClient = require('mediasoup-client') const urlParams = new URLSearchParams(location.search); -const config = require('./config') +const config = require('./config'); +const { connect } = require('socket.io-client'); console.log('[CONFIG]', config); const ASSET_ID = parseInt(urlParams.get('assetId')) || null; @@ -20455,7 +20456,7 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - consume() + // consume() }) } @@ -20580,8 +20581,8 @@ const createDevice = async () => { }) device.observer.on("newtransport", (transport) => { - console.log("new transport created [id:%s]", transport.id); - }); + consume() + }) console.log('Device RTP Capabilities', device.rtpCapabilities) console.log('[createDevice] device', device); diff --git a/public/index.js b/public/index.js index d2b5a3c..97d1f1b 100644 --- a/public/index.js +++ b/public/index.js @@ -1,7 +1,8 @@ const io = require('socket.io-client') const mediasoupClient = require('mediasoup-client') const urlParams = new URLSearchParams(location.search); -const config = require('./config') +const config = require('./config'); +const { connect } = require('socket.io-client'); console.log('[CONFIG]', config); const ASSET_ID = parseInt(urlParams.get('assetId')) || null; @@ -97,7 +98,7 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - consume() + // consume() }) } @@ -222,8 +223,8 @@ const createDevice = async () => { }) device.observer.on("newtransport", (transport) => { - console.log("new transport created [id:%s]", transport.id); - }); + consume() + }) console.log('Device RTP Capabilities', device.rtpCapabilities) console.log('[createDevice] device', device);