<div dir="ltr"><div>Sorry, my previous response was not sent to the list.</div><div><br></div><div>I have made a rust version with webrtcbin to exclude gst-python problems, but didn't succeed with it also.</div><div>Logs are in <a href="https://pastebin.com/raw/E2RmE4Hf">https://pastebin.com/raw/E2RmE4Hf</a>, source code in the same gist <a href="https://gist.github.com/le-chat/d74457383b6e821666b90e8d5cebcd38">https://gist.github.com/le-chat/d74457383b6e821666b90e8d5cebcd38</a> (<a href="http://main.rs">main.rs</a>).<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 12 июл. 2022 г. в 20:56, Alexei Golovko <<a href="mailto:alexej.golovko@gmail.com">alexej.golovko@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yes, I see the same when connecting pad-added before going into PLAYING, too.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 12 июл. 2022 г. в 15:50, Michiel Konstapel <<a href="mailto:michiel@aanmelder.nl" target="_blank">michiel@aanmelder.nl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 09-07-2022 00:37, Alexei Golovko via gstreamer-devel wrote:<br>
> I try to connect webrtcbin to Janus with gstreamer 1.20.1 and python <br>
> 3.9, but does not receive pad-added signal.<br>
><br>
> The code is in <br>
> <a href="https://gist.github.com/le-chat/d74457383b6e821666b90e8d5cebcd38#file-webrtc_receiver-py" rel="noreferrer" target="_blank">https://gist.github.com/le-chat/d74457383b6e821666b90e8d5cebcd38#file-webrtc_receiver-py</a><br>
> This gist provides full self-contained environment (with Nix or <br>
> Docker) and starts Janus server, virtual RTSP camera (used as video <br>
> source for Janus) and webrtcbin-based client which tries to connect.<br>
><br>
> The handler for pad-added is never called, and I don't understand why.<br>
><br>
> The logs are at <a href="https://pastebin.com/raw/RsyKBAfM" rel="noreferrer" target="_blank">https://pastebin.com/raw/RsyKBAfM</a><br>
> As i can see, webrtcbin establishes connection and receives many RTP <br>
> packets from Janus.<br>
><br>
> Regards, Alexei Golovko.<br>
<br>
My first guess would be that you're adding the signal handler AFTER the <br>
pad has already been created, is that possible? I think <br>
set-remote-description will trigger the creation of the pad. Or do you <br>
see the same happening when you connect the handler before going into <br>
PLAYING (uncomment line 35 in your code)?<br>
<br>
HTH,<br>
Michiel<br>
</blockquote></div>
</blockquote></div></div>