error when i try to use "on-about-to-finish" signal. python

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

error when i try to use "on-about-to-finish" signal. python

max.s
Im not on the computer that I write the code at right now, but ill try to describe it without copy paste.. I dont want any delays between the movies I play in my python-script. I found something that sound exactly like what I was looking for. when I initialize the player: self.player = gst.element_faktory_make("playbin2", "player")....
I also : self.player.connect("about-to-finish", self.on_about_to_finish)

but it doesnt work :(. the function is being called, but i have a
if: bool == 0......:
    self.player.set_property("uri", "file:///myFile")

elif:
     self.player.set_property("uri", "file:///OtherFile")

and when the EOS message apears i have tried to set the player to NULL and also READY.

but it does not work at all..

I would be very happy if somebody got any advice for me!

/max