Phoenix integration: WebRTC video component #164
zachallaun
started this conversation in
Ideas
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 |
1 reply
|
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 :) |
4 replies
|
Hi @zachallaun, JFYI, check out: https://github.com/elixir-webrtc/live_ex_webrtc |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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_phoenixcould 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 🙂
All reactions