diff options
Diffstat (limited to 'src/YalpClients/EflClient/playlist.py')
| -rw-r--r-- | src/YalpClients/EflClient/playlist.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/YalpClients/EflClient/playlist.py b/src/YalpClients/EflClient/playlist.py index 242aa76..475b39e 100644 --- a/src/YalpClients/EflClient/playlist.py +++ b/src/YalpClients/EflClient/playlist.py @@ -15,13 +15,23 @@ class Selection(object): def __init__(self, win, c, stream): self.win = win self.c = c - self.vid = emotion.Emotion(win.canvas, module_filename="gstreamer") + #self.vid = emotion.Emotion(win.canvas, module_filename="gstreamer") self.stream = stream + self.add_button() self.play_video () - + self.c.signal_callback_add("mouse,clicked,1", "medialist_buttonframe", self.huhu) + + def add_button(self): + addbutton = elementary.Button(self.win) + addbutton.label_set("Play") + self.c.part_swallow("medialist_buttonframe", addbutton) + addbutton.show() + + def huhu(self): + print "huhu" + def play_video(self): print self.stream - # ip = self.stream[0][0].destIp THIS CHRASHES!!! -> I know :-) ip = "127.0.0.1" port = 9993 print "stream from", ip, port @@ -29,4 +39,4 @@ class Selection(object): self.c.part_swallow("video", self.vid) self.vid.show() self.vid.play = True - + |
