<DIV><BR><BR><B><I>Edward Hervey <bilboed@gmail.com></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,<BR>'eos' and 'error' events don't exist anymore in 0.9. You are meant<BR>to use the bus for that. And you also need to have a mainloop running.<BR>Better have a more thorough look at the play.py example.<BR><BR>Edward<BR><BR>On 11/3/05, John Janecek <NOPA90@GMAIL.COM>wrote:<BR>> I do not think they are broken I am just missing something.<BR>><BR>> Downloaded gst-python 0.94 and installed<BR>><BR>> Most of the demos work except where connection events<BR>><BR>> def main():<BR>> fname = sys.argv[1]<BR>> absfname = os.path.abspath(fname)<BR>> uri = 'file://%s' % absfname<BR>><BR>> # Setup video/audio sink and playbin<BR>> vsink = gst.element_factory_make('xvimagesink')<BR>> asink = gst.element_factory_make('alsasink', 'asink')<BR>> playbin = gst.element_factory_make('playbin', 'playbin')<BR>> playbin.set_property('video-sink',
vsink)<BR>> playbin.set_property('audio-sink', asink)<BR>> playbin.set_property('uri', uri)<BR>><BR>> playbin.connect('eos', cb_eos)<BR>> playbin.connect('error', cb_error)<BR>><BR>> win = gtk.Window(gtk.WINDOW_TOPLEVEL)<BR>> da = gtk.DrawingArea()<BR>> ctr = Control(playbin, vsink, da)<BR>> win.add(da)<BR>> win.connect('key-release-event', ctr.key_release)<BR>> win.connect('delete-event', ctr.quit)<BR>> win.show_all()<BR>> gtk.main()<BR>> playbin.set_state(gst.STATE_NULL)<BR>><BR>> when it hit playbin.connect('eos') it report<BR>> TypeError: <__main__.GstPlayBin object (playbin) at 0xb6fa22d4>:<BR>> unknown signal name: eos<BR>><BR>><BR>> what am I doing wrong ? Am i missing something ?<BR>><BR>><BR>> -------------------------------------------------------<BR>> SF.Net email is sponsored by:<BR>> Tame your development challenges with Apache's Geronimo App Server. Download<BR>> it for free -
-and be entered to win a 42" plasma tv or your very own<BR>> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php<BR>> _______________________________________________<BR>> gstreamer-devel mailing list<BR>> gstreamer-devel@lists.sourceforge.net<BR>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR>><BR><BR><BR>--<BR>Edward Hervey<BR>Junior developer / Fluendo S.L.<BR>http://www.pitivi.org/<BR>HS^µéšŠX¬²š'²ŠÞu¼“jg²¢êÝz÷¥¢™žž×!jY^ž¬Â+a–œ…ëzº'Šj</BLOCKQUOTE></DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>