Compare commits
5 Commits
v0.3.0-rc.
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c80277851 | |||
| e862703c6c | |||
| 81fbe447fe | |||
| f0abaaff6a | |||
| 9a71f7c903 |
@@ -42,17 +42,17 @@ export const autoConfig: mediasoup.types.RouterOptions = {
|
|||||||
clockRate: 90000,
|
clockRate: 90000,
|
||||||
parameters: {},
|
parameters: {},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
kind: 'video',
|
// kind: 'video',
|
||||||
mimeType: 'video/h264',
|
// mimeType: 'video/h264',
|
||||||
clockRate: 90000,
|
// clockRate: 90000,
|
||||||
parameters: {
|
// parameters: {
|
||||||
'packetization-mode': 1,
|
// 'packetization-mode': 1,
|
||||||
'profile-level-id': '640032',
|
// 'profile-level-id': '640032',
|
||||||
'level-asymmetry-allowed': 1,
|
// 'level-asymmetry-allowed': 1,
|
||||||
'x-google-start-bitrate': 12000,
|
// 'x-google-start-bitrate': 12000,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
kind: 'video',
|
kind: 'video',
|
||||||
mimeType: 'video/h264',
|
mimeType: 'video/h264',
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { types } from 'mediasoup'
|
import type { types } from 'mediasoup'
|
||||||
|
import type { Transport } from 'mediasoup/types'
|
||||||
import type { Server as SocketServer } from 'socket.io'
|
import type { Server as SocketServer } from 'socket.io'
|
||||||
import type {
|
import type {
|
||||||
ChadClient,
|
ChadClient,
|
||||||
@@ -196,7 +197,7 @@ export default async function (io: SocketServer, router: types.Router) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const producer = await transport.produce({ kind, rtpParameters, appData: { ...appData, socketId: socket.id } })
|
const producer = await (transport as Transport).produce({ kind, rtpParameters, appData: { ...appData, socketId: socket.id } })
|
||||||
|
|
||||||
socket.data.producers.set(producer.id, producer)
|
socket.data.producers.set(producer.id, producer)
|
||||||
|
|
||||||
@@ -404,7 +405,7 @@ export default async function (io: SocketServer, router: types.Router) {
|
|||||||
{
|
{
|
||||||
producerId: producer.id,
|
producerId: producer.id,
|
||||||
rtpCapabilities: consumerSocket.data.rtpCapabilities,
|
rtpCapabilities: consumerSocket.data.rtpCapabilities,
|
||||||
enableRtx: false,
|
enableRtx: true,
|
||||||
paused: true,
|
paused: true,
|
||||||
ignoreDtx: true,
|
ignoreDtx: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user