diff options
Diffstat (limited to 'src/YalpClients/EflClient/media.py')
| -rwxr-xr-x | src/YalpClients/EflClient/media.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/YalpClients/EflClient/media.py b/src/YalpClients/EflClient/media.py index 692b27b..871369e 100755 --- a/src/YalpClients/EflClient/media.py +++ b/src/YalpClients/EflClient/media.py @@ -6,26 +6,15 @@ import YalpInterfaces, CosNaming, YalpInterfaces__POA import evas.c_evas class Media(object): - def __init__(self, result, servercon, win, c): + def __init__(self, result, video, servercon, win, c): self.result = result self.servercon = servercon self.win = win self.c = c - + self.video = video + def callback(self, obj, str): songlist = [] songlist.append(self.result) - ip = socket.gethostbyname(socket.gethostname()) + self.video.set_stream(songlist, self.servercon) - 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, stream) - video.add_button() - #def hide_frames(self, obj, signal, source): - #self.c.signal_emit("signal_from_python", "") - |
