summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/media.py
diff options
context:
space:
mode:
authorNicole Vreden <damba@slartibartfast.traut>2010-02-19 20:18:08 +0100
committerNicole Vreden <damba@slartibartfast.traut>2010-02-19 20:18:08 +0100
commit47398dbe18e7adb6b6a1493f18fc98247450e798 (patch)
tree2a7e26068ce52706055e3eeb9a945af37d88ef34 /src/YalpClients/EflClient/media.py
parent998d09ecda2e86310331a984f8f760de9ef04e50 (diff)
parented22fce7a9f4332037bf0e9fd97a96b1876acba8 (diff)
Merge remote branch 'origin/damba' into damba
Diffstat (limited to 'src/YalpClients/EflClient/media.py')
-rw-r--r--src/YalpClients/EflClient/media.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/YalpClients/EflClient/media.py b/src/YalpClients/EflClient/media.py
new file mode 100644
index 0000000..4ab5448
--- /dev/null
+++ b/src/YalpClients/EflClient/media.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+import socket
+import emotion
+import playlist
+import YalpInterfaces, CosNaming, YalpInterfaces__POA
+import evas.c_evas
+
+class Media(object):
+ def __init__(self, result, servercon, win, c):
+ self.result = result
+ self.servercon = servercon
+ self.win = win
+ self.c = c
+ #self.c.signal_callback_add("hide_frames", "medialist",self.hide_frames)
+
+ def callback(self, obj, str):
+ songlist = []
+ songlist.append(self.result)
+ ip = socket.gethostbyname(socket.gethostname())
+
+ #self.c.signal_callback_add("hide_frames", "medialist",self.hide_frames)
+
+
+ info = YalpInterfaces.AccessInfo("huhu", "huhu", "xine", "openmoko",
+ YalpInterfaces.STREAM)
+ stream = YalpInterfaces.Output(0, info, songlist, YalpInterfaces.CREATE, ip)
+ ret = self.servercon.control(stream)
+ stream.outputAction = YalpInterfaces.START
+ ret = self.servercon.control(stream)
+ print "stream.info:", stream.info
+ #video = playlist.Selection(self.win, self.c, vid, startstream)
+ video = playlist.Selection(self.win, self.c, stream)
+
+ #def hide_frames(self, obj, signal, source):
+ #self.c.signal_emit("signal_from_python", "")
+