Search found 5 matches

Go to advanced search

by raoulg
20 Sep 2010 17:16
Forum: Development around libVLC
Topic: libvlc python bindings and event manager
Replies: 8
Views: 5289

Re: libvlc python bindings and event manager

Hi,

Thanks you, I've seen that after posted my reply.

Anyway it's still stuck at the event_attach call :(
by raoulg
20 Sep 2010 11:22
Forum: Development around libVLC
Topic: libvlc python bindings and event manager
Replies: 8
Views: 5289

Re: libvlc python bindings and event manager

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...
by raoulg
14 Sep 2010 13:39
Forum: Development around libVLC
Topic: libvlc python bindings and event manager
Replies: 8
Views: 5289

Re: libvlc python bindings and event manager

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...
by raoulg
13 Sep 2010 17:04
Forum: Development around libVLC
Topic: libvlc python bindings and event manager
Replies: 8
Views: 5289

Re: libvlc python bindings and event manager

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...
by raoulg
13 Sep 2010 16:38
Forum: Development around libVLC
Topic: libvlc python bindings and event manager
Replies: 8
Views: 5289

libvlc python bindings and event manager

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("\"","")...

Go to advanced search