Compare commits

...

7 Commits

Author SHA1 Message Date
5c80277851 Update server/plugins/mediasoup-router.ts
All checks were successful
Deploy / deploy (push) Successful in 39s
2026-06-04 10:28:29 +00:00
e862703c6c server enable rtx...
All checks were successful
Deploy / deploy (push) Successful in 37s
2026-05-29 05:39:58 +06:00
81fbe447fe server log consumer rtp
All checks were successful
Deploy / deploy (push) Successful in 44s
2026-05-29 05:12:30 +06:00
f0abaaff6a server log consumer rtp
All checks were successful
Deploy / deploy (push) Successful in 41s
2026-05-29 05:04:42 +06:00
9a71f7c903 server trace
All checks were successful
Deploy / deploy (push) Successful in 43s
2026-05-29 04:43:26 +06:00
87a1f348be new stun server 2026-05-24 16:29:54 +06:00
ecb1cbbb91 opus
All checks were successful
Deploy / deploy (push) Successful in 35s
2026-05-12 00:33:17 +06:00
4 changed files with 17 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ interface SpeakingClient {
}
const ICE_SERVERS: RTCIceServer[] = [
{ urls: 'stun:stunserver2025.stunprotocol.org:3478' },
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:stun.l.google.com:5349' },
{ urls: 'stun:stun1.l.google.com:3478' },

View File

@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Chad",
"version": "0.3.0-rc.5",
"version": "0.3.0-rc.6",
"identifier": "xyz.koptilnya.chad",
"build": {
"frontendDist": "../.output/public",

View File

@@ -23,7 +23,7 @@ export const autoConfig: mediasoup.types.RouterOptions = {
mimeType: 'audio/opus',
clockRate: 48000,
channels: 2,
parameters: { useinbandfec: 1, stereo: 1 },
parameters: { useinbandfec: 0, stereo: 1 },
},
{
kind: 'video',
@@ -42,17 +42,17 @@ export const autoConfig: mediasoup.types.RouterOptions = {
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': '640032',
// 'level-asymmetry-allowed': 1,
// 'x-google-start-bitrate': 12000,
// },
// },
{
kind: 'video',
mimeType: 'video/h264',

View File

@@ -1,4 +1,5 @@
import type { types } from 'mediasoup'
import type { Transport } from 'mediasoup/types'
import type { Server as SocketServer } from 'socket.io'
import type {
ChadClient,
@@ -196,7 +197,7 @@ export default async function (io: SocketServer, router: types.Router) {
}
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)
@@ -404,7 +405,7 @@ export default async function (io: SocketServer, router: types.Router) {
{
producerId: producer.id,
rtpCapabilities: consumerSocket.data.rtpCapabilities,
enableRtx: false,
enableRtx: true,
paused: true,
ignoreDtx: true,
},