Phoenix integration: WebRTC video component #164
Replies: 3 comments 7 replies
-
That's a cool idea (we thought of something similar at some point too, albeit its unrelated to the WebRTC implementation itself, so it landed in a drawer) - it might be worth tackling @mickel8 |
Beta Was this translation helpful? Give feedback.
-
That would be awesome! Personally, I would love someone who knows LiveView better to implement this. I can help with explaining WebRTC. If not, I will try to create some PoC :) |
Beta Was this translation helpful? Give feedback.
-
Hi @zachallaun, JFYI, check out: https://github.com/elixir-webrtc/live_ex_webrtc |
Beta Was this translation helpful? Give feedback.
-
Hey all -- really cool project here!
I was wondering if there were any plans to package the client-side setup into a built-in video component and hook. For instance, the Broadcaster app uses this custom hook and I wonder if an
ex_webrtc_phoenix
could be published that basically packages all that up so that someone could build a basic WebRTC integration while writing essentially no JavaScript.While I admit to having not dug too deeply into the code, it looks like most of the assumed variables in the hook (like the ICE servers, WHEP endpoint, etc.) could be passed as attributes.
This would have the side-benefit of potentially making the Broadcaster app example a bit slicker as the JS would be abstracted away, and LiveView streams could even be used for the chat instead of channels + DOM mutation 🙂
Beta Was this translation helpful? Give feedback.
All reactions