[gst-devel] python events do not work

John Janecek nopa90 at gmail.com
Thu Nov 3 03:01:31 CET 2005

I do not think they are broken I am just missing something.

Downloaded gst-python 0.94 and installed

Most of the demos work except where connection events

def main():
       fname = sys.argv[1]
       absfname = os.path.abspath(fname)
       uri = 'file://%s' % absfname

       # Setup video/audio sink and playbin
       vsink = gst.element_factory_make('xvimagesink')
       asink = gst.element_factory_make('alsasink', 'asink')
       playbin = gst.element_factory_make('playbin', 'playbin')
       playbin.set_property('video-sink', vsink)
       playbin.set_property('audio-sink', asink)
       playbin.set_property('uri', uri)

       playbin.connect('eos', cb_eos)
       playbin.connect('error', cb_error)

       win = gtk.Window(gtk.WINDOW_TOPLEVEL)
       da = gtk.DrawingArea()
       ctr = Control(playbin, vsink, da)
       win.connect('key-release-event', ctr.key_release)
       win.connect('delete-event', ctr.quit)

when it hit playbin.connect('eos') it report
TypeError: <__main__.GstPlayBin object (playbin) at 0xb6fa22d4>:
unknown signal name: eos

what am I doing wrong ? Am i missing something ?

More information about the gstreamer-devel mailing list