From d1ad8b4d3a082b905780b6c02d42823f8113b669 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 22 Nov 2022 20:38:16 +0200 Subject: [PATCH] Update server --- app.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 702eb14..5707a3f 100644 --- a/app.js +++ b/app.js @@ -92,10 +92,21 @@ worker = createWorker(); // https://github.com/versatica/mediasoup/blob/v3/src/supportedRtpCapabilities.ts const mediaCodecs = [ { - kind: 'audio', - mimeType: 'audio/opus', + // kind: 'audio', + // mimeType: 'audio/opus', + // clockRate: 48000, + // channels: 2, clockRate: 48000, - channels: 2, + mimeType: "audio/opus", + parameters: { + minptime: 10, + useinbandfec: 1 + }, + payloadType: 111, + rtcpFeedback: [{ + parameter: "", + type: "transport-cc" + }] }, { kind: 'video',