Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####MediaSoup Server settings####
- #router
- router: {
- mediaCodecs:
- [
- {
- kind: 'audio',
- mimeType: 'audio/opus',
- clockRate: 48000,
- channels: 2
- },
- {
- kind: 'video',
- mimeType: 'video/VP8',
- clockRate: 90000,
- parameters:
- {
- 'x-google-start-bitrate': 10000,
- }
- },
- ]
- },
- #Worker options with Simulcast enabled
- worker: {
- rtcMinPort: 10000,
- rtcMaxPort: 59999,
- logLevel: 'warn',
- logTags: [
- 'info',
- 'ice',
- 'dtls',
- 'rtp',
- 'srtp',
- 'rtcp',
- // 'rtx',
- // 'bwe',
- // 'score',
- 'simulcast',
- // 'svc'
- ],
- },
- ####MediaSoup Server settings####
- ####MediaSoup Publisher settings####
- #https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions
- encodings :
- [
- { maxBitrate: 96000, scaleResolutionDownBy: 4 },
- { maxBitrate: 680000, scaleResolutionDownBy: 2 },
- { maxBitrate: 1500000, scaleResolutionDownBy: 1 }
- ],
- codecOptions :
- {
- videoGoogleStartBitrate : 2000,
- //videoGoogleMaxBitrate: 10000,
- //videoGoogleMinBitrate: 500
- }
- ####MediaSoup Publisher settings####
- ####MediaSoup Consumer settings####
- #https://mediasoup.org/documentation/v3/mediasoup/api/#ConsumerLayers
- if (consumer.type === 'simulcast') {
- await consumer.setPreferredLayers({ spatialLayer: 2, temporalLayer: 2 });
- }
- ####MediaSoup Consumer settings####
Advertisement
Add Comment
Please, Sign In to add comment