terminate part of pipeline children

hi, I have the following: ParticipantPipeline with multiple children: - :vr_publisher - :vr_subscriber - :vr_screen_subscriber - :vr_screen_publisher they are custom bins containing logic to work with webrtc connections to janus gateway. I need to shutdown :vr_screen_publisher, when someone publishes screen media to janus room. Goal is to have only one screen publish to the room at a time. How to properly handle this situation?
1 Reply
varsill
varsill8mo ago
Hello! If I get it correctly, in the pipeline you have multiple vr_* elements, one per each participant - is that right? If so, it seems as if you need to use the remove_children action (https://hexdocs.pm/membrane_core/Membrane.Pipeline.Action.html#t:remove_children/0). Depending on the structure of the bins (and whether or not they use dynamic pads), it might require some further actions. Could you share with us a sketch of your pipeline and definitions of the bins' pads?
Want results from more Discord servers?
Add your server