# mediasoup libraries

**URL:** https://mediasoup.discourse.group/c/mediasoup-libraries/12.md?page=2

[Latest](https://mediasoup.discourse.group/latest.md) · [Categories](https://mediasoup.discourse.group/categories.md)

**Page:** 3

---

## [Trouble with getUserMedia in mediasoup-client-aiortc](https://mediasoup.discourse.group/t/trouble-with-getusermedia-in-mediasoup-client-aiortc/6362)

<div class="topic-metadata">

**Author:** [@Lam-Hung-ai](https://mediasoup.discourse.group/u/Lam-Hung-ai)\
**Replies:** 1\
**Last updated:** [June 9, 2025, 8:42am UTC](https://mediasoup.discourse.group/t/trouble-with-getusermedia-in-mediasoup-client-aiortc/6362 "2025-06-09T08:42:43Z")

</div>

I’ve tried a lot of to know what this bug but finally i cannot fix that. I wanna get getUserMedia by using mediasoup-client-aiortc but got error: ValueError: no container format ‘alsa’. I’ve already install alsa Can s…

---

## [Why I get transport close event automatically in 15s from the starting?](https://mediasoup.discourse.group/t/why-i-get-transport-close-event-automatically-in-15s-from-the-starting/6716)

<div class="topic-metadata">

**Author:** [@amg](https://mediasoup.discourse.group/u/amg)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 8:02pm UTC](https://mediasoup.discourse.group/t/why-i-get-transport-close-event-automatically-in-15s-from-the-starting/6716 "2025-05-30T20:02:13Z")

</div>

Bug Report Your environment Operating system: Ubuntu Node version: 23 npm version: 0.9 gcc/clang version: no need mediasoup version: 3.16.0 mediasoup-client version: 3.11.0 Issue description I started mediasoup server …

---

## [🧵 \[QUESTION\] How to switch media stream using the same PlainTransport without re-creating the full pipeline? ](https://mediasoup.discourse.group/t/question-how-to-switch-media-stream-using-the-same-plaintransport-without-re-creating-the-full-pipeline/6714)

<div class="topic-metadata">

**Author:** [@SangVoM](https://mediasoup.discourse.group/u/SangVoM)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 6:19am UTC](https://mediasoup.discourse.group/t/question-how-to-switch-media-stream-using-the-same-plaintransport-without-re-creating-the-full-pipeline/6714 "2025-05-30T06:19:38Z")

</div>

Hi everyone, I’m building a backend-driven streaming application using Mediasoup + FFmpeg + PlainTransport. My goal is to switch between different media sources (e.g. welcome.mp4, waiting.mp4, streaming.ts) from backen…

---

## [is there any way to detect offline user using medisoup event or method?](https://mediasoup.discourse.group/t/is-there-any-way-to-detect-offline-user-using-medisoup-event-or-method/6701)

<div class="topic-metadata">

**Author:** [@neerajcollab](https://mediasoup.discourse.group/u/neerajcollab)\
**Replies:** 2\
**Last updated:** [May 28, 2025, 9:50am UTC](https://mediasoup.discourse.group/t/is-there-any-way-to-detect-offline-user-using-medisoup-event-or-method/6701 "2025-05-28T09:50:38Z")

</div>

Hi everyone, Is there a reliable way to detect when a user goes offline (client or server side) in mediasoup? I’ve tried: transport.on('dtlsstatechange') transport.on('connectionstatechange') transport.on('close') B…

---

## [Multiple webrtc servers/workers with 1 port?](https://mediasoup.discourse.group/t/multiple-webrtc-servers-workers-with-1-port/6669)

<div class="topic-metadata">

**Author:** [@namnm](https://mediasoup.discourse.group/u/namnm)\
**Replies:** 7\
**Last updated:** [May 27, 2025, 1:42am UTC](https://mediasoup.discourse.group/t/multiple-webrtc-servers-workers-with-1-port/6669 "2025-05-27T01:42:19Z")

</div>

It is really good to have webrtc server, but it limits to 1 worker/cpu per server/port. I hope to have multiple workers working on 1 single port. Then we would listen on 443, with vertical scaling ready. If it is not …

---

## [Feature Proposal: Support Full ICE in mediasoup](https://mediasoup.discourse.group/t/feature-proposal-support-full-ice-in-mediasoup/6688)

<div class="topic-metadata">

**Author:** [@wuxinfei](https://mediasoup.discourse.group/u/wuxinfei)\
**Replies:** 4\
**Last updated:** [May 21, 2025, 10:08am UTC](https://mediasoup.discourse.group/t/feature-proposal-support-full-ice-in-mediasoup/6688 "2025-05-21T10:08:38Z")

</div>

Currently, mediasoup only supports ICE-lite, which has implementation simplicity as its primary advantage. However, there are several technical and practical reasons to support Full ICE. Limitations of ICE-lite WHEP ca…

---

## [transport.getStats() no data](https://mediasoup.discourse.group/t/transport-getstats-no-data/6680)

<div class="topic-metadata">

**Author:** [@huxiaoluder](https://mediasoup.discourse.group/u/huxiaoluder)\
**Replies:** 2\
**Last updated:** [May 14, 2025, 11:28am UTC](https://mediasoup.discourse.group/t/transport-getstats-no-data/6680 "2025-05-14T11:28:58Z")

</div>

Hello! Video stream play normally. But \_recvTransport.getStats() can not get any data. Is there some js or server configuration need setup?

---

## [Prefer client-side codecs order](https://mediasoup.discourse.group/t/prefer-client-side-codecs-order/2167)

<div class="topic-metadata">

**Author:** [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)\
**Replies:** 12\
**Last updated:** [May 14, 2025, 10:52am UTC](https://mediasoup.discourse.group/t/prefer-client-side-codecs-order/2167 "2025-05-14T10:52:28Z")

</div>

Currently getExtendedRtpCapabilities in mediasoup-client iterates through codecs in the order they are on the server. This may be desirable in some cases and not in others, like when browser prefers H264 because it has …

---

## [Recovery of pipeTransport disconnection](https://mediasoup.discourse.group/t/recovery-of-pipetransport-disconnection/6662)

<div class="topic-metadata">

**Author:** [@hasnarof](https://mediasoup.discourse.group/u/hasnarof)\
**Replies:** 3\
**Last updated:** [May 7, 2025, 12:34pm UTC](https://mediasoup.discourse.group/t/recovery-of-pipetransport-disconnection/6662 "2025-05-07T12:34:05Z")

</div>

So now I’m designing the flow of a scenario where multiple servers are used. streamer client → publisher SFU server → broadcaster SFU server → watcher client Broadcaster SFU servers can be multiple, and has a relations…

---

## [Multiple transports for one port](https://mediasoup.discourse.group/t/multiple-transports-for-one-port/6648)

<div class="topic-metadata">

**Author:** [@dragonwarr1or](https://mediasoup.discourse.group/u/dragonwarr1or)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 6:31pm UTC](https://mediasoup.discourse.group/t/multiple-transports-for-one-port/6648 "2025-04-29T18:31:01Z")

</div>

Hi! Can i use one port for multiple transports? I’m deploying to k8s and it shows "Error: no more available ports \[protocol:udp, ip:'0.0.0.0', numAttempt:1\] ".

---

## [mediasoup-sfu-webrtc-video-rooms closing producers at once on transport close](https://mediasoup.discourse.group/t/mediasoup-sfu-webrtc-video-rooms-closing-producers-at-once-on-transport-close/6651)

<div class="topic-metadata">

**Author:** [@valentin-filyov](https://mediasoup.discourse.group/u/valentin-filyov)\
**Replies:** 3\
**Last updated:** [April 25, 2025, 12:20pm UTC](https://mediasoup.discourse.group/t/mediasoup-sfu-webrtc-video-rooms-closing-producers-at-once-on-transport-close/6651 "2025-04-25T12:20:23Z")

</div>

Hello all! I’m having issues extending the library when I created two video streams and try to close them all at once. The exit function seems to close transport (so respectfully all of its producers) but it seems to go…

---

## [createPipeTransport on diffrent nodes](https://mediasoup.discourse.group/t/createpipetransport-on-diffrent-nodes/3001)

<div class="topic-metadata">

**Author:** [@engi](https://mediasoup.discourse.group/u/engi)\
**Replies:** 10\
**Last updated:** [April 25, 2025, 5:16am UTC](https://mediasoup.discourse.group/t/createpipetransport-on-diffrent-nodes/3001 "2025-04-25T05:16:31Z")

</div>

Hi Mediasoup Team ! Im tring to cluster My Project so i do this scenario : I Have 2 Nodes (Should they be on different hosts): lets call them nodeA and nodeB im tring to use createPipeTransport on each and try produc…

---

## [Missing \`replaceVersion()\` in \`prepare\` case (again, as in v3.9.3)](https://mediasoup.discourse.group/t/missing-replaceversion-in-prepare-case-again-as-in-v3-9-3/6646)

<div class="topic-metadata">

**Author:** [@miroslavpejic85](https://mediasoup.discourse.group/u/miroslavpejic85)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 8:41am UTC](https://mediasoup.discourse.group/t/missing-replaceversion-in-prepare-case-again-as-in-v3-9-3/6646 "2025-04-24T08:41:02Z")

</div>

Hey team, Just a heads-up — same issue as we saw in v3.9.3 is present in mediasoup-client v3.9.7. The replaceVersion() call is missing in the prepare case of npm-scripts.mjs. To fix: case 'prepare': { buildTypescrip…

---

## [Mediasoup Client Flutter Compatibility Issue with Flutter WebRTC](https://mediasoup.discourse.group/t/mediasoup-client-flutter-compatibility-issue-with-flutter-webrtc/6626)

<div class="topic-metadata">

**Author:** [@Sam15b](https://mediasoup.discourse.group/u/Sam15b)\
**Replies:** 0\
**Last updated:** [April 12, 2025, 11:14am UTC](https://mediasoup.discourse.group/t/mediasoup-client-flutter-compatibility-issue-with-flutter-webrtc/6626 "2025-04-12T11:14:30Z")

</div>

I’m currently facing compatibility issues between mediasoup\_client\_flutter and newer versions of flutter\_webrtc. Here’s my old pubspec.yml setup: dependencies: flutter\_webrtc: ^0.6.10 mediasoup\_client\_flutter: ^0.4.…

---

## [Im getting Tracks as muted for all type of streams like( webcam, microphone , scresnshare) whlie consuming the tracks](https://mediasoup.discourse.group/t/im-getting-tracks-as-muted-for-all-type-of-streams-like-webcam-microphone-scresnshare-whlie-consuming-the-tracks/6621)

<div class="topic-metadata">

**Author:** [@Donex](https://mediasoup.discourse.group/u/Donex)\
**Replies:** 8\
**Last updated:** [April 11, 2025, 5:36pm UTC](https://mediasoup.discourse.group/t/im-getting-tracks-as-muted-for-all-type-of-streams-like-webcam-microphone-scresnshare-whlie-consuming-the-tracks/6621 "2025-04-11T17:36:37Z")

</div>

Guys im a beginner who were interested to explore many things and do. I know the code snipets are too long sorry for that . I think full code give you clear understanding.so i tried a mediasoup involved project like goog…

---

## [Remote MediaStream Shows Blank / Black Screen (React Native WebRTC + mediasoup-client)](https://mediasoup.discourse.group/t/remote-mediastream-shows-blank-black-screen-react-native-webrtc-mediasoup-client/6623)

<div class="topic-metadata">

**Author:** [@pareshbbi](https://mediasoup.discourse.group/u/pareshbbi)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 7:43am UTC](https://mediasoup.discourse.group/t/remote-mediastream-shows-blank-black-screen-react-native-webrtc-mediasoup-client/6623 "2025-04-10T07:43:08Z")

</div>

I’m working on a React Native app using react-native-webrtc and mediasoup-client. The host produces both audio and video tracks successfully and emits the produce event. However, on the viewer side, although both videoTr…

---

## [Mediasoup 3.13.19 - RTC::RTCP::FeedbackRtpTransport::AddPacket() | failed assertion 'baseSet': base not set](https://mediasoup.discourse.group/t/mediasoup-3-13-19-rtc-addpacket-failed-assertion-baseset-base-not-set/6607)

<div class="topic-metadata">

**Author:** [@HARJEETSINGHX](https://mediasoup.discourse.group/u/HARJEETSINGHX)\
**Replies:** 3\
**Last updated:** [April 8, 2025, 10:20am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-19-rtc-addpacket-failed-assertion-baseset-base-not-set/6607 "2025-04-08T10:20:04Z")

</div>

Hello everyone, I’m experiencing a worker crash issue with Mediasoup version \*3.13.19 to Node.js 18.17.0. The worker crashes with the following error message: mediasoup:ERROR:Worker (stderr) (ABORT) RTC::RTCP::Feedback…

---

## [WebRTC/C++ app - empty incoming audio](https://mediasoup.discourse.group/t/webrtc-c-app-empty-incoming-audio/6593)

<div class="topic-metadata">

**Author:** [@wilddolphin2022](https://mediasoup.discourse.group/u/wilddolphin2022)\
**Replies:** 0\
**Last updated:** [March 29, 2025, 4:23pm UTC](https://mediasoup.discourse.group/t/webrtc-c-app-empty-incoming-audio/6593 "2025-03-29T16:23:31Z")

</div>

Getting empty audio incoming to c++ app - outgoing audio is good. Connecting to v3demo.mediasoup.org room. Need someone to help me with it. Can someone look? Also some questions - do I need two peerconnections or only o…

---

## [Problem consuming stream on test server - bitrate problem](https://mediasoup.discourse.group/t/problem-consuming-stream-on-test-server-bitrate-problem/6580)

<div class="topic-metadata">

**Author:** [@CaribouFute](https://mediasoup.discourse.group/u/CaribouFute)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 12:10am UTC](https://mediasoup.discourse.group/t/problem-consuming-stream-on-test-server-bitrate-problem/6580 "2025-03-26T00:10:55Z")

</div>

Hi everyone, We try to deploy our solution for multi-user video broadcasting but have problems consuming the video streams on our test server. On local, everything goes fine (beside Firefox). I can see myself on two di…

---

## [Issue with mediasoup: Peer cannot see/hear others until they refresh the page](https://mediasoup.discourse.group/t/issue-with-mediasoup-peer-cannot-see-hear-others-until-they-refresh-the-page/6466)

<div class="topic-metadata">

**Author:** [@Math](https://mediasoup.discourse.group/u/Math)\
**Replies:** 21\
**Last updated:** [March 23, 2025, 5:34pm UTC](https://mediasoup.discourse.group/t/issue-with-mediasoup-peer-cannot-see-hear-others-until-they-refresh-the-page/6466 "2025-03-23T17:34:47Z")

</div>

Hello everyone, I’m using mediasoup in an Express project to build a video conferencing application. However, I’m facing an intermittent issue where a peer joins the room but cannot see/hear others (video/audio streams …

---

## [mediasoup-client 3.9.3: Incorrect version constant](https://mediasoup.discourse.group/t/mediasoup-client-3-9-3-incorrect-version-constant/6574)

<div class="topic-metadata">

**Author:** [@miroslavpejic85](https://mediasoup.discourse.group/u/miroslavpejic85)\
**Replies:** 3\
**Last updated:** [March 21, 2025, 9:32pm UTC](https://mediasoup.discourse.group/t/mediasoup-client-3-9-3-incorrect-version-constant/6574 "2025-03-21T21:32:47Z")

</div>

In version 3.9.3, the version constant is defined as: export declare const version = "\_\_MEDIASOUP\_CLIENT\_VERSION\_\_"; instead of the expected version string. This appears to be a build or packaging issue where the place…

---

## [Mediasoup Consumer Not Receiving Packets – Need Debugging Help](https://mediasoup.discourse.group/t/mediasoup-consumer-not-receiving-packets-need-debugging-help/6567)

<div class="topic-metadata">

**Author:** [@Vamshi](https://mediasoup.discourse.group/u/Vamshi)\
**Replies:** 2\
**Last updated:** [March 20, 2025, 1:15pm UTC](https://mediasoup.discourse.group/t/mediasoup-consumer-not-receiving-packets-need-debugging-help/6567 "2025-03-20T13:15:04Z")

</div>

I’m working on a Mediasoup-based video call setup and running into an issue where a consumer isn’t receiving packets from a producer. Here’s my setup: The producer is created successfully, and rtpParameters are sent t…

---

## [Panic in consumer.rs getStats with PipeConsumer::FillBufferStats](https://mediasoup.discourse.group/t/panic-in-consumer-rs-getstats-with-pipeconsumer-fillbufferstats/6563)

<div class="topic-metadata">

**Author:** [@a114711074](https://mediasoup.discourse.group/u/a114711074)\
**Replies:** 1\
**Last updated:** [March 20, 2025, 11:25am UTC](https://mediasoup.discourse.group/t/panic-in-consumer-rs-getstats-with-pipeconsumer-fillbufferstats/6563 "2025-03-20T11:25:27Z")

</div>

PipeConsumer::FillBuffer returns two FBS::RtpStream::CreateSendStats, Consumer.rs getStats need a ConsumerStat and a ProducerStat \_ =\> { let consumer\_stat = ConsumerStat::from\_fbs(&data.stats\[0\]); let produce…

---

## [Transports and Node server shut downs with error when two users produce and consume each other's video at the same time](https://mediasoup.discourse.group/t/transports-and-node-server-shut-downs-with-error-when-two-users-produce-and-consume-each-others-video-at-the-same-time/6560)

<div class="topic-metadata">

**Author:** [@CaribouFute](https://mediasoup.discourse.group/u/CaribouFute)\
**Replies:** 5\
**Last updated:** [March 17, 2025, 10:22pm UTC](https://mediasoup.discourse.group/t/transports-and-node-server-shut-downs-with-error-when-two-users-produce-and-consume-each-others-video-at-the-same-time/6560 "2025-03-17T22:22:29Z")

</div>

I updated an old version of a mediasoup server app, because some packages had a lot of security issues. I am able to show (produce) my video as a user (user1) and see (consume) the user1 with another user (user2). I can…

---

## [pipeToRouter only between different workers?](https://mediasoup.discourse.group/t/pipetorouter-only-between-different-workers/6548)

<div class="topic-metadata">

**Author:** [@pksinghus](https://mediasoup.discourse.group/u/pksinghus)\
**Replies:** 10\
**Last updated:** [March 11, 2025, 11:04pm UTC](https://mediasoup.discourse.group/t/pipetorouter-only-between-different-workers/6548 "2025-03-11T23:04:56Z")

</div>

I see this in the documentation for pipeToRouter Due to a internal design optimization in C++, the origin router and target router cannot be in the same worker. In other words, router1.pipeToRouter({ router: router2, e…

---

## [consuming media from pipeToRouter call](https://mediasoup.discourse.group/t/consuming-media-from-pipetorouter-call/6549)

<div class="topic-metadata">

**Author:** [@pksinghus](https://mediasoup.discourse.group/u/pksinghus)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 8:45pm UTC](https://mediasoup.discourse.group/t/consuming-media-from-pipetorouter-call/6549 "2025-03-11T20:45:27Z")

</div>

After a peer has been piped in to a router by using pipeToRouter (by piping in all its producers), how do I consume its media in the demo application? The demo works on Peer objects. After piping in a producer I didn’t s…

---

## [How to connect two, or more, users in the same room?](https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520)

<div class="topic-metadata">

**Author:** [@DevEwerton](https://mediasoup.discourse.group/u/DevEwerton)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 8:21am UTC](https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520 "2025-03-11T08:21:19Z")

</div>

Hello everyone, how are you? First of all, I want to thank everyone for their support. I also want to say that I’m new to this SFU architecture and the mediasoup library, so bear with me! Well, I cloned the project (G…

---

## [libmediasoupclient fails on aws ec2 with no audio device](https://mediasoup.discourse.group/t/libmediasoupclient-fails-on-aws-ec2-with-no-audio-device/1502)

<div class="topic-metadata">

**Author:** [@eyals](https://mediasoup.discourse.group/u/eyals)\
**Replies:** 7\
**Last updated:** [March 11, 2025, 8:08am UTC](https://mediasoup.discourse.group/t/libmediasoupclient-fails-on-aws-ec2-with-no-audio-device/1502 "2025-03-11T08:08:36Z")

</div>

We are trying to implement a re-encoder, as suggested in the scaling documentation (mediasoup :: Scalability). We have started with compiling libmediasoupclient and walking through the mediasoup-broadcaster-demo example…

---

## [Consumer video track muted on production, not muted in local](https://mediasoup.discourse.group/t/consumer-video-track-muted-on-production-not-muted-in-local/5081)

<div class="topic-metadata">

**Author:** [@CaribouFute](https://mediasoup.discourse.group/u/CaribouFute)\
**Replies:** 9\
**Last updated:** [March 8, 2025, 10:53am UTC](https://mediasoup.discourse.group/t/consumer-video-track-muted-on-production-not-muted-in-local/5081 "2025-03-08T10:53:23Z")

</div>

Hi everyone, I have made changes to the mediasoup server made by another programmer years ago. In local, when producing/consuming video, the video stream works perfectly fine, meaning: the video stream is not muted. p…

---

## [realtime AI voice Agent with mediasoup](https://mediasoup.discourse.group/t/realtime-ai-voice-agent-with-mediasoup/6532)

<div class="topic-metadata">

**Author:** [@Daanish2003](https://mediasoup.discourse.group/u/Daanish2003)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 11:38am UTC](https://mediasoup.discourse.group/t/realtime-ai-voice-agent-with-mediasoup/6532 "2025-03-07T11:38:36Z")

</div>

Hi first of all thank you for building great library. I have been building realtime AI voice-agent with mediasoup. I have encounter some problem i would like to have your suggestion How does my app work From client t…

[Previous page](https://mediasoup.discourse.group/c/mediasoup-libraries/12.md?page=1)

[Next page](https://mediasoup.discourse.group/c/mediasoup-libraries/12.md?page=3)
