forked from pabloFuente/mediasoup-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
66 lines (65 loc) · 1.68 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const Ip = require('ip');
console.log('Internal IP is %s', Ip.address());
module.exports = {
ip: '0.0.0.0',
internalIp: Ip.address(),
port: 8080,
path: '/server',
ws: {
pingInterval: 25000,
pingTimeout: 5000
},
mediasoup: {
worker: {
logLevel: 'warn',
logTags: [
'info',
'ice',
'dtls',
'rtp',
'srtp',
'rtcp',
// 'rtx',
// 'bwe',
// 'score',
// 'simulcast',
// 'svc'
],
rtcMinPort: 32256,
rtcMaxPort: 65535
},
router: {
mediaCodecs: [{
kind: 'audio',
mimeType: 'audio/opus',
clockRate: 48000,
preferredPayloadType: 109,
channels: 2
},
{
kind: 'video',
mimeType: 'video/VP8',
clockRate: 90000,
preferredPayloadType: 120,
parameters: {
'x-google-start-bitrate': 1000
}
}
]
},
webRtcTransport: {
enableUdp: true,
enableTcp: true,
preferUdp: true,
minimumAvailableOutgoingBitrate: 300000,
initialAvailableOutgoingBitrate: 600000
},
plainRtpTransport: {
listenIp: {
ip: Ip.address(),
announcedIp: null
},
maxSctpMessageSize: 262144
}
}
}