const newWorker = await mediasoup.createWorker(mediasoupConfig.worker); const…
- User
const newWorker = await mediasoup.createWorker(mediasoupConfig.worker);
const supportedRtpCapabilities = { worker: { rtcMinPort: 40000, rtcMaxPort: 49999, logLevel: "warn", logTags: ["info", "ice", "dtls", "rtp", "srtp", "rtcp"], },
i am using charles proxy but getting this error on client:
async function createTransportSend() { const {id, iceParameters, iceCandidates, dtlsParameters, sctpParameters} = await getSocketEventResponse(mediasoupSocket, 'createTransport', { roomId, peerId, type: 'send', }); const transportSend = device.createSendTransport({ id, iceParameters, iceCandidates, dtlsParameters, sctpParameters, });
Transport send connection state changed: connecting Transport send connection state changed: failed
please note that my client is in a docker container and my mediasoup server is running locally
this is my client config:
export const MEDIASOUP_URL = isProduction
? 'http://20.193.143.183:3001/';
: 'http://20.193.143.183:3001/';
and my server:
const isProduction = process.env.NODE_ENV === "production"; const transport = await router.createWebRtcTransport({ listenInfos: [ { protocol: "udp", ip: isProduction ? process.env.MEDIASOUP_LISTEN_IP || "127.0.0.1" : "127.0.0.1", announcedAddress: isProduction ? process.env.MEDIASOUP_ANNOUNCED_IP || null : null, }, { protocol: "tcp", ip: isProduction ? process.env.MEDIASOUP_LISTEN_IP || "127.0.0.1" : "127.0.0.1", announcedAddress: isProduction ? process.env.MEDIASOUP_ANNOUNCED_IP || null : null, }, ], enableUdp: true, enableTcp: true, enableSctp: true, // preferUdp: true, });
the server is not running in proudction but on the same machine as the docker container locally
- Assistant