This commit is contained in:
@@ -27,10 +27,52 @@ export const autoConfig: mediasoup.types.RouterOptions = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
kind: 'video',
|
kind: 'video',
|
||||||
mimeType: 'video/VP8',
|
mimeType: 'video/AV1',
|
||||||
clockRate: 90000,
|
clockRate: 90000,
|
||||||
parameters: {
|
parameters: {
|
||||||
'x-google-start-bitrate': 1000,
|
'level-idx': 9, // Level 4.1 — 1080p60
|
||||||
|
'profile': 0, // Main Profile
|
||||||
|
'tier': 0, // Main tier (0) vs High tier (1)
|
||||||
|
'x-google-start-bitrate': 8000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
kind: 'video',
|
||||||
|
mimeType: 'video/AV1',
|
||||||
|
clockRate: 90000,
|
||||||
|
parameters: {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
kind: 'video',
|
||||||
|
mimeType: 'video/h264',
|
||||||
|
clockRate: 90000,
|
||||||
|
parameters: {
|
||||||
|
'packetization-mode': 1,
|
||||||
|
'profile-level-id': '640032',
|
||||||
|
'level-asymmetry-allowed': 1,
|
||||||
|
'x-google-start-bitrate': 12000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
kind: 'video',
|
||||||
|
mimeType: 'video/h264',
|
||||||
|
clockRate: 90000,
|
||||||
|
parameters: {
|
||||||
|
'packetization-mode': 1,
|
||||||
|
'profile-level-id': '4d0032',
|
||||||
|
'level-asymmetry-allowed': 1,
|
||||||
|
'x-google-start-bitrate': 8000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
kind: 'video',
|
||||||
|
mimeType: 'video/h264',
|
||||||
|
clockRate: 90000,
|
||||||
|
parameters: {
|
||||||
|
'packetization-mode': 1,
|
||||||
|
'profile-level-id': '42e01f',
|
||||||
|
'level-asymmetry-allowed': 1,
|
||||||
|
'x-google-start-bitrate': 8000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -44,51 +86,11 @@ export const autoConfig: mediasoup.types.RouterOptions = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
kind: 'video',
|
kind: 'video',
|
||||||
mimeType: 'video/VP9',
|
mimeType: 'video/VP8',
|
||||||
clockRate: 90000,
|
clockRate: 90000,
|
||||||
parameters: {
|
parameters: {
|
||||||
'profile-id': 2,
|
'x-google-start-bitrate': 2000,
|
||||||
'x-google-start-bitrate': 1000,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
kind: 'video',
|
|
||||||
mimeType: 'video/h264',
|
|
||||||
clockRate: 90000,
|
|
||||||
parameters: {
|
|
||||||
'packetization-mode': 1,
|
|
||||||
'profile-level-id': '640032',
|
|
||||||
'level-asymmetry-allowed': 1,
|
|
||||||
'x-google-start-bitrate': 8000,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
kind: 'video',
|
|
||||||
mimeType: 'video/h264',
|
|
||||||
clockRate: 90000,
|
|
||||||
parameters: {
|
|
||||||
'packetization-mode': 1,
|
|
||||||
'profile-level-id': '4d0032',
|
|
||||||
'level-asymmetry-allowed': 1,
|
|
||||||
'x-google-start-bitrate': 1000,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
kind: 'video',
|
|
||||||
mimeType: 'video/h264',
|
|
||||||
clockRate: 90000,
|
|
||||||
parameters: {
|
|
||||||
'packetization-mode': 1,
|
|
||||||
'profile-level-id': '42e01f',
|
|
||||||
'level-asymmetry-allowed': 1,
|
|
||||||
'x-google-start-bitrate': 1000,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
kind: 'video',
|
|
||||||
mimeType: 'video/AV1',
|
|
||||||
clockRate: 90000,
|
|
||||||
parameters: {},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -404,8 +404,7 @@ export default async function (io: SocketServer, router: types.Router) {
|
|||||||
{
|
{
|
||||||
producerId: producer.id,
|
producerId: producer.id,
|
||||||
rtpCapabilities: consumerSocket.data.rtpCapabilities,
|
rtpCapabilities: consumerSocket.data.rtpCapabilities,
|
||||||
// Enable NACK for OPUS.
|
enableRtx: false,
|
||||||
enableRtx: true,
|
|
||||||
paused: true,
|
paused: true,
|
||||||
ignoreDtx: true,
|
ignoreDtx: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user