Compare commits

..

8 Commits

Author SHA1 Message Date
1d7c994036 Update build 2022-11-22 18:33:06 +02:00
bc2bf24a65 Update build 2022-11-22 18:32:47 +02:00
cdbfc7891d Update build 2022-11-22 18:30:25 +02:00
c730341674 Update build 2022-11-22 18:28:50 +02:00
b621b76e37 Connect to mediasoup with timeout(fix when it appears offline) 2022-11-22 18:27:56 +02:00
39ad9cad27 Update bundle 2022-11-22 18:10:05 +02:00
8860423e21 LH-265: Update client config 2022-11-22 10:28:45 +02:00
9179a67f64 LH-265: Enable audio on video server 2022-11-21 22:59:41 +02:00
6 changed files with 405 additions and 698 deletions

View File

2
app.js
View File

@ -154,7 +154,7 @@ peers.on('connection', async socket => {
try {
// We can continue with the room creation process only if we have a callId
if (callId) {
console.log(`[createRoom] --🟥-- socket.id ${socket.id} callId ${callId}`);
console.log(`[createRoom] socket.id ${socket.id} callId ${callId}`);
if (!videoCalls[callId]) {
console.log('[createRoom] callId', callId);
videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) }

View File

@ -15,7 +15,6 @@ fi
## PROJECT NEEDS
echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
#npm run-script build
cp .env.example .env
cp -r {.env,app.js,package.json,server,public} dist/
#Add version control for pm2
@ -45,4 +44,5 @@ fi
## POST BUILD
cd -
rm .env

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
module.exports = {
hubAddress: 'https://hub.dev.linx.safemobile.com/',
mediasoupAddress: 'https://video.safemobile.org/mediasoup',
// mediasoupAddress: 'http://localhost:3000/mediasoup',
mediasoupAddress: 'https://video.safemobile.org',
}

View File

@ -12,8 +12,13 @@ let callId = parseInt(urlParams.get('callId')) || null;
const IS_PRODUCER = urlParams.get('producer') === 'true' ? true : false
console.log('[URL] ASSET_ID', ASSET_ID, '| ACCOUNT_ID', ACCOUNT_ID, '| callId', callId, ' | IS_PRODUCER', IS_PRODUCER)
console.log('🟩 config', config)
let socket
hub = io(config.hubAddress)
setTimeout(() => {
hub = io(config.hubAddress)
}, 2000);
const connectToMediasoup = () => {
@ -36,7 +41,7 @@ const connectToMediasoup = () => {
if (IS_PRODUCER === true) {
hub.on('connect', async () => {
console.log(`[HUB] ${config.hubAddress} | connected: ${hub.connected}`)
console.log(`[HUB]! ${config.hubAddress} | connected: ${hub.connected}`)
connectToMediasoup()
hub.emit(
@ -135,7 +140,7 @@ const streamSuccess = (stream) => {
const getLocalStream = () => {
console.log('[getLocalStream]');
navigator.mediaDevices.getUserMedia({
audio: false,
audio: true,
video: {
width: {
min: 640,