def updateState(self, set): Stats.updateState(self, set) set('icy-title', self.muxer.get_property('iradio-title')) timestamp = time.strftime("%c", time.localtime(\ self.muxer.get_property('iradio-timestamp'))) set('icy-timestamp', timestamp)
def configure_pipeline(self, pipeline, properties): self.sinksByID3 =\ {False: self.get_element('sink-without-id3'), True: self.get_element('sink-with-id3')} Stats.__init__(self, self.sinksByID3.values()) self._updateCallLaterId = reactor.callLater(10, self._updateStats) self.configureAuthAndResource() self.parseProperties(properties) for sink in self.sinks: self.configureSink(sink) pad = pipeline.get_by_name('tee').get_pad('sink') pad.add_event_probe(self._tag_event_cb) self.configureMuxer(pipeline)