r/elixir • • 5d ago

Potential tutorials on how to implement Video Chat with Phoenix Backend and React Frontend

Hello, I was wondering if there are any good tutorials online that talk about how to implement webRTC voice chat with Phoenix as the backend signalling server, and React as the frontend UI.

This is oddly specific, but I would like a tutorial with at least one of the components listed above if that's possible

Any help would be appreciated !

14 Upvotes

4 comments sorted by

3

u/jake_morrison 5d ago edited 4d ago

There are these books:

* https://pragprog.com/titles/ksrtc/programming-webrtc/
* https://pragprog.com/titles/sbsockets/real-time-phoenix/

We have implemented custom telemedicine systems with Phoenix that integrated web video with back end apps for the doctor to access electronic medical records, call scheduling, and billing.

The biggest issue was actually cross platform incompatibility between browsers on mobile devices, particularly Safari. The test matrix was crazy, and you can’t assume that every combination will be able to communicate.

Keep in mind that the WebRTC APIs are fundamentally browser-related and driven by JavaScript events. Whatever UI you build needs to interact with these APIs and generate these events. It may make sense to use WebSockets as your signaling, then have React communicate with the Phoenix server over WebSockets as well.

1

u/ShininLotoen 4d ago

Ok, thank you !

1

u/Lower-Conversation36 5d ago

I have already implemented the same thing. With elixir backend and react frontend. Using Janus media server as the provider. Worked really efficiently for me.

0

u/Lower-Conversation36 5d ago

I was actually working on a video chat app not a voice chat but the entire flow is kind of same only