Compare commits

..

1 Commits

Author SHA1 Message Date
df3482ac15 LH-265: Enable audio on video server 2022-11-21 23:02:49 +02:00
4 changed files with 4 additions and 4 deletions

View File

2
app.js
View File

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

View File

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

View File

@ -135,7 +135,7 @@ const streamSuccess = (stream) => {
const getLocalStream = () => { const getLocalStream = () => {
console.log('[getLocalStream]'); console.log('[getLocalStream]');
navigator.mediaDevices.getUserMedia({ navigator.mediaDevices.getUserMedia({
audio: false, audio: true,
video: { video: {
width: { width: {
min: 640, min: 640,