コード例 #1
0
    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()
コード例 #2
0
ファイル: icystreamer.py プロジェクト: faroncoder/flumotion
    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()
コード例 #3
0
 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])
コード例 #4
0
    def parseProperties(self, properties):
        MultifdSinkStreamer.parseProperties(self, properties)

        self._frameSize = properties.get('frame-size', self.defaultFrameSize)
        self._metadataInterval = properties.get('metadata-interval', \
                                                 self.defaultMetadataInterval)
コード例 #5
0
ファイル: icystreamer.py プロジェクト: faroncoder/flumotion
 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])
コード例 #6
0
ファイル: icystreamer.py プロジェクト: faroncoder/flumotion
    def parseProperties(self, properties):
        MultifdSinkStreamer.parseProperties(self, properties)

        self._frameSize = properties.get('frame-size', self.defaultFrameSize)
        self._metadataInterval = properties.get('metadata-interval', \
                                                 self.defaultMetadataInterval)