Hi and thanks for your help! I've done your modifications in my code but It still doesn't work :-( Here my implementation of my Player class: class Player(gtk.Socket): def __init__(self, id): gtk.Socket.__init__(self) self.player = vlc.MediaPlayer() def restart(self): self.player.play() @vlc.callbac...
Hi, Thanks for your answer. I understand your first piece of code and that I can't callback p.play() directly inside the event_attach function. But I'm new a PyGTK and I don't understand how to implement the gobject.idle_add() to my code. In my case, I've got a class called "Menu" wich con...
So I don't know If the way I use event_attach is okay or not but with this simple code I get a Segmentation Fault: import vlc i=vlc.Instance() m=i.media_new('rtsp://root:pass@192.168.0.127/axis-media/media.amp') p=i.media_player_new() p.set_media(m) e=p.event_manager() e.event_attach(vlc.EventType.M...
Hi every one, I'm using libVLC for playing RTSP stream (from IP cameras) embeded in a GTK Socket. I have one class for the libVLC class Player(gtk.Socket): def __init__(self, id): gtk.Socket.__init__(self) def loadfile(self, filename, wid): filename=filename.replace("\"","")...