Update server

This commit is contained in:
Sergiu Toma 2022-11-22 20:38:16 +02:00
parent f20e1ad260
commit d1ad8b4d3a

17
app.js
View File

@ -92,10 +92,21 @@ worker = createWorker();
// https://github.com/versatica/mediasoup/blob/v3/src/supportedRtpCapabilities.ts // https://github.com/versatica/mediasoup/blob/v3/src/supportedRtpCapabilities.ts
const mediaCodecs = [ const mediaCodecs = [
{ {
kind: 'audio', // kind: 'audio',
mimeType: 'audio/opus', // mimeType: 'audio/opus',
// clockRate: 48000,
// channels: 2,
clockRate: 48000, clockRate: 48000,
channels: 2, mimeType: "audio/opus",
parameters: {
minptime: 10,
useinbandfec: 1
},
payloadType: 111,
rtcpFeedback: [{
parameter: "",
type: "transport-cc"
}]
}, },
{ {
kind: 'video', kind: 'video',