1 from Converter import Converter
2 from Components.Element import cached
4 class Streaming(Converter):
5 def __init__(self, type):
6 Converter.__init__(self, type)
10 service = self.source.service
14 streaming = service.stream()
15 s = streaming and streaming.getStreamingData()
18 err = service.getError()
19 return "-1SERVICE ERROR:%d" % err
21 r = streaming.getStreamingData()
26 pids = ','.join(["%x:%s" % (x[0], x[1]) for x in r["pids"]])
28 return "+%d:%s\n" % (demux, pids)
30 text = property(getText)