summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/playlist.py
diff options
context:
space:
mode:
authorNicole Vreden <damba@mecka.net>2010-02-25 21:31:48 +0100
committerNicole Vreden <damba@mecka.net>2010-02-25 21:31:48 +0100
commit47bb89113f37e5d8e6e6f21bb129fc2e0c7dcb9c (patch)
tree6d63e00e70ee16bd26c3fee9af72d1b203947941 /src/YalpClients/EflClient/playlist.py
parent3cfdb235df1ee164181d89e7a30877e637c422f7 (diff)
Yalp-EFL-GUI: Receiving Streams
-changed Class-Design Signed-off-by: Nicole Vreden <damba@mecka.net>
Diffstat (limited to 'src/YalpClients/EflClient/playlist.py')
-rwxr-xr-xsrc/YalpClients/EflClient/playlist.py36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/YalpClients/EflClient/playlist.py b/src/YalpClients/EflClient/playlist.py
index 58f2919..484872f 100755
--- a/src/YalpClients/EflClient/playlist.py
+++ b/src/YalpClients/EflClient/playlist.py
@@ -8,37 +8,49 @@ import ecore
import emotion
import evas
import elementary
+import YalpInterfaces, CosNaming, YalpInterfaces__POA
+import evas.c_evas
import media
class Selection(object):
- def __init__(self, win, c, stream):
+ def __init__(self, win, c):
self.win = win
self.c = c
- self.vid = emotion.Emotion(self.win.canvas, module_filename="xine")
- self.stream = stream
+ self.vid = emotion.Emotion(self.win.canvas, module_filename="gstreamer")
self.add_button()
- self.play_video()
- self.c.signal_callback_add("mouse,clicked,1", "medialist_buttonframe", self.huhu)
+ self.c.signal_callback_add("mouse,clicked,1", "medialist_buttonframe",
+ self.play_video)
def add_button(self):
addbutton = elementary.Button(self.win)
addbutton.label_set("Play")
self.c.part_swallow("medialist_buttonframe", addbutton)
addbutton.show()
+
+ def set_stream(self, songs, servercon):
+ self.songlist = songs
+ self.servercon = servercon
+ print "songlist", songs
+
- def huhu(self):
- print "huhu"
-
- def play_video(self):
- print self.stream
+ def play_video(self, dummy, dumm, duemmer):
ip = "127.0.0.1"
port = 9993
+ info = YalpInterfaces.AccessInfo("huhu", "huhu", "xine", "openmoko",
+ YalpInterfaces.STREAM)
+ stream = YalpInterfaces.Output(0, info, self.songlist,
+ YalpInterfaces.CREATE, ip)
+ ret = self.servercon.control(stream)
+ stream.outputAction = YalpInterfaces.START
+ ret = self.servercon.control(stream)
+ print "stream.info:", stream.info
+
print "stream from", ip, 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