Beispiel #1
0
    def __init__(self, pipeline_string=None):
        EventLauncher.__init__(self)
        self.send_debug = False
        if pipeline_string is None:
            pipeline_string = default_pipeline

        self.parse_description(pipeline_string)
Beispiel #2
0
 def __init__(self):
     EventLauncher.__init__(self)
     EventListener.__init__(self)
     # In kbits/s
     self.video_bitrate = vb = 2000 
     # In bits/s
     self.audio_bitrate = ab = 128000
     # In kbits/s
     self.video_width = 320 
     self.video_height = 240
     self.video_framerate = 25
     self.registerEvent("sos")