def __init__(self, timeout=80):
        """
        @param timeout (optional): the amount of miliseconds for a seek attempt
        """
        Signallable.__init__(self)
        Loggable.__init__(self)

        self.timeout = timeout
        self.pending_seek_id = None
        self.position = None
        self.format = None
        self._time = None
Ejemplo n.º 2
0
 def __init__(self, pipeline, video_overlay):
     Loggable.__init__(self)
     Signallable.__init__(self)
     self._pipeline = pipeline
     self._bus = self._pipeline.get_bus()
     self._bus.add_signal_watch()
     self._bus.connect("message", self._busMessageCb)
     self._listening = False  # for the position handler
     self._listeningInterval = 300  # default 300ms
     self._listeningSigId = 0
     self._duration = Gst.CLOCK_TIME_NONE
     self.video_overlay = video_overlay
 def __init__(self, pipeline):
     Loggable.__init__(self)
     Signallable.__init__(self)
     self._pipeline = pipeline
     self._bus = self._pipeline.get_bus()
     self._bus.add_signal_watch()
     self._bus.connect("message", self._busMessageCb)
     # Initially, we set a synchronous bus message handler so that the xid
     # is known right away and we can set the viewer synchronously, avoiding
     # the creation of an external window.
     # Afterwards, the xid-message is handled async (to avoid deadlocks).
     self._bus.set_sync_handler(self._busSyncMessageHandler)
     self._has_sync_bus_handler = True
     self._listening = False  # for the position handler
     self._listeningInterval = 300  # default 300ms
     self._listeningSigId = 0
     self._duration = gst.CLOCK_TIME_NONE
Ejemplo n.º 4
0
 def __init__(self, **kwargs):
     Signallable.__init__(self)
     self._config = SafeConfigParser()
     self._readSettingsFromGlobalConfiguration()
     self._readSettingsFromConfigurationFile()
     self._readSettingsFromEnvironmentVariables()