<div>Hello,</div><div><br></div><div>I have to develop a framework for video conferencing using RTP in Python. To start with I tried to use the examples under</div><div><a href="http://blog.abourget.net/2009/6/14/gstreamer-rtp-and-live-streaming/" target="_blank">http://blog.abourget.net/2009/6/14/gstreamer-rtp-and-live-streaming/</a> and they work.</div>

<div><br></div><div>Now on the video receiver side I need to add the signal on_new_ssrc to notify if a new SSRC has entered that session. I did not find any example using this in gst python. Is it possible to receive Gstreamer signals in python? </div>
<div><br></div><div>I tried using:</div><div>def on_new_ssrc(rtpbin,session,ssrc,user_data):<br>    struct = gst.Structure(&#39;on_new_ssrc&#39;)<br>    rtpbin.post_message(gst.message_new_application(rtpbin, struct))<br>
    print &quot;new ssrc&quot;<br>    print &quot;  session&quot;, session<br>    print &quot;  ssrc&quot;, ssrc<br>rtpbin = pipeline.get_by_name(&#39;rtpbin&#39;)<br>rtpbin.connect(&#39;on-new-ssrc&#39;, on_new_ssrc)   <br>
   <br>def application_message(bus, msg):<br>#Receive application messages from the bus.<br>    bus = pipeline.get_bus()<br>    bus.add_signal_watch()<br>    bus.connect(&#39;message::application&#39;, application_message)<br>
    msgtype = msg.structure.get_name()<br>    if msgtype == &#39;on_new_ssrc&#39;:<br>        pipeline.set_state(gst.STATE_NULL)<br>    elif msgtype == &#39;error&#39;:<br>        pipeline.set_state(gst.STATE_PAUSED)  <br>
        print &quot;MESSAGE_ERROR&quot;<br>        err, debug = message.parse_error()<br>        logger.error(&quot;ERROR: %s, %s&quot; % (err, debug) )<br>     <br></div><div>But this does not work.</div><div><br></div><div>
Is it possible to do so. Please provide with some examples.</div><div><br></div><div>Regards,</div><br>