I’m trying to use Janus with the streaming plugin to deliver video to a web page. I’d like to show a dozen or so videos simultaneously on the same page, each connected to Janus playing a different stream. The H264+Opus streams are being delivered to Janus over rtp from ffmpeg.
On the browser frontend:
- The first 5 streams start well.
- When I add a 6th stream, it starts slowly.
- When I add a 7th stream, it will usually not start, or will be very slow to start (minutes).
As long as I stay in the same browser, these seem to hold true whether I’m viewing them on a single page, or separate pages with one video on each. I see this same behaviour regardless of if I’m using Chrome, Safari or Edge.
Weirdly, if I open an entirely different browser like Edge at the same time, while the streams are actively still trying to connect a 7th stream in Chrome, I can quickly open another 5 streams in Edge. That browser then suffers from the same symptoms if I try to open a 6th & 7th stream.
Is there a limitation to the number of webrtc sessions supported by Janus in a single browser session?
I’m currently on v1.2.4, but have also tried a few earlier builds and seen the same issue.
This is one of the sessions not connecting. You can see there is a few calls there than took 25-30+ seconds.