gstlal 1.13.0
Loading...
Searching...
No Matches
python.stream.StreamHandler Class Reference
Inheritance diagram for python.stream.StreamHandler:
Collaboration diagram for python.stream.StreamHandler:

Public Member Functions

 __init__ (self, *args, **kwargs)
None add_callback (self, Gst.MessageType msg_type, *args)
 do_on_message (self, Gst.Bus bus, Gst.Message message)
Public Member Functions inherited from python.simplehandler.Handler
 __init__ (self, mainloop, pipeline)
 quit (self, bus)
 on_message (self, bus, message)

Public Attributes

dict callbacks
Public Attributes inherited from python.simplehandler.Handler
 mainloop = mainloop
 pipeline = pipeline
 on_message_handler_id = bus.connect("message", self.on_message)

Detailed Description

Definition at line 438 of file stream.py.

Constructor & Destructor Documentation

◆ __init__()

python.stream.StreamHandler.__init__ ( self,
* args,
** kwargs )

Definition at line 439 of file stream.py.

Member Function Documentation

◆ add_callback()

None python.stream.StreamHandler.add_callback ( self,
Gst.MessageType msg_type,
* args )
Attach a callback which get invoked when new bus messages are available.

        Args:
            msg_type:
                Gst.MessageType, the type of message to invoke a callback for.
            *args:
                extra arguments

Definition at line 449 of file stream.py.

◆ do_on_message()

python.stream.StreamHandler.do_on_message ( self,
Gst.Bus bus,
Gst.Message message )
Invoke registered callbacks when new bus messages are received.

        Args:
            bus:
                Gst.Bus, the GStreamer bus.
            message:
                Gst.Message, the message received.

        Returns:
            bool, whether further message handling is performed by the parent class
            with default cases for EOS, INFO, WARNING and ERROR messages.

Reimplemented from python.simplehandler.Handler.

Definition at line 470 of file stream.py.

Member Data Documentation

◆ callbacks

dict python.stream.StreamHandler.callbacks
Initial value:
= {
Gst.MessageType.ELEMENT: {},
Gst.MessageType.APPLICATION: {},
Gst.MessageType.EOS: {},
}

Definition at line 443 of file stream.py.


The documentation for this class was generated from the following file: