Package flumotion :: Package component :: Module padmonitor :: Class PadMonitor
[hide private]

Class PadMonitor

source code

extern.log.log.Loggable --+
                          |
                         PadMonitor
Known Subclasses:

I monitor data flow on a GStreamer pad. I regularly schedule a buffer probe call at PAD_MONITOR_PROBE_INTERVAL. I regularly schedule a check call at PAD_MONITOR_CHECK_INTERVAL that makes sure a buffer probe was triggered since the last check call.

Instance Methods [hide private]
 
__init__(self, pad, name, setActive, setInactive) source code
 
logMessage(self, message, *args) source code
 
isActive(self) source code
 
detach(self) source code
 
_probe_timeout(self) source code
 
_check_timeout(self) source code
 
addWatch(self, setActive, setInactive) source code
 
setInactive(self) source code
 
setActive(self) source code

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  PAD_MONITOR_PROBE_INTERVAL = 5.0
  PAD_MONITOR_CHECK_INTERVAL = 12.5

Inherited from extern.log.log.Loggable: __implemented__, logCategory

Method Details [hide private]

__init__(self, pad, name, setActive, setInactive)
(Constructor)

source code 
Parameters:
  • setActive (callable) - a callable that will be called when the pad is considered active, taking the name of the monitor.
  • setInactive (callable) - a callable that will be called when the pad is considered inactive, taking the name of the monitor.
  • pad (gst.Pad)
  • name (str)

addWatch(self, setActive, setInactive)

source code 
Parameters:
  • setActive (callable) - a callable that will be called when the pad is considered active, taking the name of the monitor.
  • setInactive (callable) - a callable that will be called when the pad is considered inactive, taking the name of the monitor.