-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
55 lines (53 loc) · 1.12 KB
/
config.js
File metadata and controls
55 lines (53 loc) · 1.12 KB
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
module.exports = {
server: {
port: process.env.SERVER_PORT || 8000
},
mediasoup: {
// mediasoup Server settings.
logLevel: 'warn',
logTags: [
'info',
'ice',
'dtls',
'rtp',
'srtp',
'rtcp',
'rbe',
'rtx'
],
rtcIPv4: process.env.RTC_IP || true,
rtcIPv6: false,
rtcAnnouncedIPv4: process.env.RTC_ANNOUNCED_IP || null,
rtcAnnouncedIPv6: null,
rtcMinPort: process.env.RTC_MIN_PORT || 40000,
rtcMaxPort: process.env.RTC_MAX_PORT || 49999,
// mediasoup Room codecs.
mediaCodecs: [
{
kind: 'audio',
name: 'opus',
clockRate: 48000,
channels: 2,
parameters: {
useinbandfec: 1
}
},
{
kind: 'video',
name: 'VP8',
clockRate: 90000
},
/*{
kind: 'video',
name: 'H264',
clockRate: 90000,
parameters: {
'packetization-mode': 1
}
}*/
],
// mediasoup per Peer max sending bitrate (in bps).
maxBitrate: 500000
},
iceServers: [{ 'urls': 'stun:stun.l.google.com:19302' }]
};