Naveen Saini
Naveen Saini

Reputation: 1

Java-based WebRTC SFU implementation for Spring Boot project

I'm currently working on a project where users can create rooms using WebRTC technology. While I'm comfortable with the front-end implementation, I'm seeking guidance on how to integrate WebRTC SFU (Selective Forwarding Unit) functionality into my Spring Boot backend.

I've explored options like mediasoup and Kurento, but they are primarily for Node.js environments. Since my project is based on Spring Boot, I'm looking for Java-based alternatives.

Could someone recommend a Java library or provide insights on implementing WebRTC SFU in a Spring Boot application? Scalability is a crucial factor for my project, so solutions that can handle large numbers of concurrent connections effectively would be preferred.

Thank you in advance for any assistance or suggestions.

Upvotes: 0

Views: 426

Answers (1)

omid
omid

Reputation: 31

I have been reading about this topic myself and that's how I came across your question. From what I understand so far, you don't need to integrate the SFU into your Spring Boot application. The SFU is a standalone server(or a cluster of them) that typically exposes APIs over HTTP or some other protocol for management. In your Spring Boot application, you would use those APIs to manage the SFU server, such as creating a virtual space (or what ever word they use for this concept) and generating a token for users to join that space. Some SFUs handle the signaling part of WebRTC internally and some don't. In the second case your spring boot application should handle the signaling too. I decided to go with Livekit. Its not an SFU exactlly. Its been built on top of pion SFU and provided some easy to use libraries for different languages(Java included) to manage the server and write clients.

Upvotes: 0

Related Questions