elixir-webrtc / live_ex_webrtc

Phoenix Live Components for Elixir WebRTC
https://elixir-webrtc.org
Apache License 2.0
19 stars 4 forks source link

Benefit from the Membrane Pipeline using live_ex_webrtc #3

Open francktchowa opened 6 days ago

francktchowa commented 6 days ago

I'm using live_ex_webrtc for a project, and I've tweaked a couple of things into the code in order to have some additional functionalities. Currently I'm facing a big challenge, which is how to use a membrane pipeline with the packets I'm sending/receiving in the publisher or player in order to do some processing. Is there some documentation of references on how to do?

mickel8 commented 1 day ago

Hi @francktchowa, copying what @sgfn wrote on our Discord:

live_ex_webrtc uses a PubSub as a source/sink of RTP packets. If you insist on using it, you'd have to write your own Membrane pipeline that would receive/publish the RTP packets to said PubSub and do whatever it is you want to achieve: (de)payloading, dump to/from file etc (edited) [12:42 PM] we don't have a plugin for that yet, seeing as live_ex_webrtc is a relatively recent addition to our ecosystem; you'd have to write the source/sink elements yourself [12:42 PM] ofc, contributions are always welcome :))

Let me know if this helps you or you need some further explanation.

Also, what kind of processing you would like to do? And another question, would you like to process the packet before it is published on pubsub?

Any tweaks are weclomed as PRs! :)