def init(self): MultifdSinkStreamer.init(self) # fd -> sink self.sinkConnections = {} # headers to be included in HTTP response self.icyHeaders = {} for i in ('icy-title', 'icy-timestamp'): self.uiState.addKey(i, None) # fired after we receive first datablock and configure muxer self._muxerConfiguredDeferred = defer.Deferred()
def do_pipeline_playing(self): # change the component mood to happy after we receive first data block # so that we can calculate the bitrate and configure muxer d = MultifdSinkStreamer.do_pipeline_playing(self) return defer.DeferredList([d, self._muxerConfiguredDeferred])
def parseProperties(self, properties): MultifdSinkStreamer.parseProperties(self, properties) self._frameSize = properties.get('frame-size', self.defaultFrameSize) self._metadataInterval = properties.get('metadata-interval', \ self.defaultMetadataInterval)