Noarkhh
Noarkhh
SMSoftware Mansion
Created by Villain In Glasses on 7/3/2024 in #membrane-help
How do I invoke Pipeline.handle_info from a Phoenix.WebChannel?
no problem, happy to help ;)
9 replies
SMSoftware Mansion
Created by Villain In Glasses on 7/3/2024 in #membrane-help
How do I invoke Pipeline.handle_info from a Phoenix.WebChannel?
handle_init has arity of 2, try
def handle_init(_ctx, _opts) do
...
def handle_init(_ctx, _opts) do
...
9 replies
SMSoftware Mansion
Created by Villain In Glasses on 7/3/2024 in #membrane-help
How do I invoke Pipeline.handle_info from a Phoenix.WebChannel?
to give your child a name that can be used to locate this child you need to explicitly specify it in the child function, otherwise the child will be anonymous. You could specify the name like this:
child(:source, AudioTranscription.Source)
child(:source, AudioTranscription.Source)
and the child would be available under name :source
9 replies
SMSoftware Mansion
Created by Villain In Glasses on 7/3/2024 in #membrane-help
How do I invoke Pipeline.handle_info from a Phoenix.WebChannel?
Hi @Villain In Glasses All Membrane.Pipeline and Membrane.Element callbacks need to return a tuple of Actions and the next state (as shown here) notify_child is an action, so to use it you need to return it from the handle_info callback. In your case the return value in handle_info should probably look like this:
{[notify_child: {<child_name>, <your_message>}], state}
{[notify_child: {<child_name>, <your_message>}], state}
Thanks to this the specified child will receive the message after the handle_info callback execution finishes
9 replies
SMSoftware Mansion
Created by Wojciech Orzechowski on 1/17/2024 in #membrane-help
RTSP authentication problem?
Hi @Wojciech Orzechowski, SETUP Message doesn't need to have Session Id set. You can try debugging by basing on our rtsp_to_hls demo and by monitoring your network traffic using tools like Wireshark. Should you have any more questions feel free to ask :)
13 replies
SMSoftware Mansion
Created by Wojciech Orzechowski on 1/17/2024 in #membrane-help
RTSP authentication problem?
HI @Wojciech Orzechowski, would you be able to determine what call caused this {:error, {:invalid_addrtype, "o=- 14665860 31787219 1 IN IP4 192.168.1.10"}} error?
13 replies