Update Client show error correctly
This commit is contained in:
parent
6ae0c3571e
commit
acabe9eb81
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user