<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('on_new_ssrc')<br> rtpbin.post_message(gst.message_new_application(rtpbin, struct))<br>
print "new ssrc"<br> print " session", session<br> print " ssrc", ssrc<br>rtpbin = pipeline.get_by_name('rtpbin')<br>rtpbin.connect('on-new-ssrc', 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('message::application', application_message)<br>
msgtype = msg.structure.get_name()<br> if msgtype == 'on_new_ssrc':<br> pipeline.set_state(gst.STATE_NULL)<br> elif msgtype == 'error':<br> pipeline.set_state(gst.STATE_PAUSED) <br>
print "MESSAGE_ERROR"<br> err, debug = message.parse_error()<br> logger.error("ERROR: %s, %s" % (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>