summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/playlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/YalpClients/EflClient/playlist.py')
-rwxr-xr-x[-rw-r--r--]src/YalpClients/EflClient/playlist.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/YalpClients/EflClient/playlist.py b/src/YalpClients/EflClient/playlist.py
index 475b39e..58f2919 100644..100755
--- a/src/YalpClients/EflClient/playlist.py
+++ b/src/YalpClients/EflClient/playlist.py
@@ -15,17 +15,17 @@ 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(self.win.canvas, module_filename="xine")
self.stream = stream
self.add_button()
- self.play_video ()
+ 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()
+ addbutton = elementary.Button(self.win)
+ addbutton.label_set("Play")
+ self.c.part_swallow("medialist_buttonframe", addbutton)
+ addbutton.show()
def huhu(self):
print "huhu"
@@ -35,8 +35,10 @@ class Selection(object):
ip = "127.0.0.1"
port = 9993
print "stream from", ip, port
- self.vid.file_set("udp://"+ip+":"+str(port))
+ self.vid.file_set("http://"+ip+":"+str(port))
+ #self.vid.file_set("/home/manut/test.avi")
+ print "self.vid", self.vid
self.c.part_swallow("video", self.vid)
- self.vid.show()
- self.vid.play = True
+ #self.vid.show()
+ #self.vid.play = True