GstRTPBaseDepayload
Provides a base class for RTP depayloaders
GstRTPBaseDepayload
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstRTPBaseDepayload
Members
parent
(GstElement)
–
sinkpad
(GstPad *)
–
srcpad
(GstPad *)
–
clock_rate
(guint)
–
segment
(GstSegment)
–
need_newsegment
(gboolean)
–
Class structure
GstRTPBaseDepayloadClass
Base class for RTP depayloaders.
Fields
parent_class
(GstElementClass)
–
the parent class
GstRtp.RTPBaseDepayloadClass
Base class for RTP depayloaders.
Attributes
parent_class
(Gst.ElementClass)
–
the parent class
GstRtp.RTPBaseDepayloadClass
Base class for RTP depayloaders.
Attributes
parent_class
(Gst.ElementClass)
–
the parent class
GstRTPBaseDepayload
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstRTPBaseDepayload
Members
parent
(GstElement)
–
sinkpad
(GstPad)
–
srcpad
(GstPad)
–
clock_rate
(Number)
–
segment
(GstSegment)
–
need_newsegment
(Number)
–
GstRTPBaseDepayload
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstRTPBaseDepayload
Members
parent
(GstElement)
–
sinkpad
(GstPad)
–
srcpad
(GstPad)
–
clock_rate
(int)
–
segment
(GstSegment)
–
need_newsegment
(bool)
–
Methods
gst_rtp_base_depayload_is_source_info_enabled
gboolean gst_rtp_base_depayload_is_source_info_enabled (GstRTPBaseDepayload * depayload)
Queries whether GstRTPSourceMeta will be added to depayloaded buffers.
Parameters:
depayload
–
TRUE if source-info is enabled.
Since : 1.16
GstRtp.RTPBaseDepayload.prototype.is_source_info_enabled
function GstRtp.RTPBaseDepayload.prototype.is_source_info_enabled(): {
// javascript wrapper for 'gst_rtp_base_depayload_is_source_info_enabled'
}
Queries whether GstRtp.RTPSourceMeta will be added to depayloaded buffers.
Parameters:
depayload
(
GstRtp.RTPBaseDepayload
)
–
Since : 1.16
GstRtp.RTPBaseDepayload.is_source_info_enabled
def GstRtp.RTPBaseDepayload.is_source_info_enabled (self):
#python wrapper for 'gst_rtp_base_depayload_is_source_info_enabled'
Queries whether GstRtp.RTPSourceMeta will be added to depayloaded buffers.
Parameters:
depayload
(
GstRtp.RTPBaseDepayload
)
–
Since : 1.16
gst_rtp_base_depayload_push
GstFlowReturn gst_rtp_base_depayload_push (GstRTPBaseDepayload * filter, GstBuffer * out_buf)
Push out_buf to the peer of filter. This function takes ownership of out_buf.
This function will by default apply the last incoming timestamp on the outgoing buffer when it didn't have a timestamp already.
GstRtp.RTPBaseDepayload.prototype.push
function GstRtp.RTPBaseDepayload.prototype.push(out_buf: Gst.Buffer): {
// javascript wrapper for 'gst_rtp_base_depayload_push'
}
Push out_buf to the peer of filter. This function takes ownership of out_buf.
This function will by default apply the last incoming timestamp on the outgoing buffer when it didn't have a timestamp already.
GstRtp.RTPBaseDepayload.push
def GstRtp.RTPBaseDepayload.push (self, out_buf):
#python wrapper for 'gst_rtp_base_depayload_push'
Push out_buf to the peer of filter. This function takes ownership of out_buf.
This function will by default apply the last incoming timestamp on the outgoing buffer when it didn't have a timestamp already.
gst_rtp_base_depayload_push_list
GstFlowReturn gst_rtp_base_depayload_push_list (GstRTPBaseDepayload * filter, GstBufferList * out_list)
Push out_list to the peer of filter. This function takes ownership of out_list.
GstRtp.RTPBaseDepayload.prototype.push_list
function GstRtp.RTPBaseDepayload.prototype.push_list(out_list: Gst.BufferList): {
// javascript wrapper for 'gst_rtp_base_depayload_push_list'
}
Push out_list to the peer of filter. This function takes ownership of out_list.
GstRtp.RTPBaseDepayload.push_list
def GstRtp.RTPBaseDepayload.push_list (self, out_list):
#python wrapper for 'gst_rtp_base_depayload_push_list'
Push out_list to the peer of filter. This function takes ownership of out_list.
gst_rtp_base_depayload_set_source_info_enabled
gst_rtp_base_depayload_set_source_info_enabled (GstRTPBaseDepayload * depayload, gboolean enable)
Enable or disable adding GstRTPSourceMeta to depayloaded buffers.
Parameters:
depayload
–
enable
–
whether to add meta about RTP sources to buffer
Since : 1.16
GstRtp.RTPBaseDepayload.prototype.set_source_info_enabled
function GstRtp.RTPBaseDepayload.prototype.set_source_info_enabled(enable: Number): {
// javascript wrapper for 'gst_rtp_base_depayload_set_source_info_enabled'
}
Enable or disable adding GstRtp.RTPSourceMeta to depayloaded buffers.
Parameters:
depayload
(
GstRtp.RTPBaseDepayload
)
–
enable
(
Number
)
–
whether to add meta about RTP sources to buffer
Since : 1.16
GstRtp.RTPBaseDepayload.set_source_info_enabled
def GstRtp.RTPBaseDepayload.set_source_info_enabled (self, enable):
#python wrapper for 'gst_rtp_base_depayload_set_source_info_enabled'
Enable or disable adding GstRtp.RTPSourceMeta to depayloaded buffers.
Parameters:
depayload
(
GstRtp.RTPBaseDepayload
)
–
enable
(
bool
)
–
whether to add meta about RTP sources to buffer
Since : 1.16
Properties
max-reorder
“max-reorder” gint
Max seqnum reorder before the sender is assumed to have restarted.
When max-reorder is set to 0 all reordered/duplicate packets are considered coming from a restarted sender.
Flags : Read / Write
max-reorder
“max-reorder” Number
Max seqnum reorder before the sender is assumed to have restarted.
When max-reorder is set to 0 all reordered/duplicate packets are considered coming from a restarted sender.
Flags : Read / Write
max_reorder
“self.props.max_reorder” int
Max seqnum reorder before the sender is assumed to have restarted.
When max-reorder is set to 0 all reordered/duplicate packets are considered coming from a restarted sender.
Flags : Read / Write
source-info
“source-info” gboolean
Add RTP source information found in RTP header as meta to output buffer.
Flags : Read / Write
source-info
“source-info” Number
Add RTP source information found in RTP header as meta to output buffer.
Flags : Read / Write
source_info
“self.props.source_info” bool
Add RTP source information found in RTP header as meta to output buffer.
Flags : Read / Write
stats
“stats” GstStructure *
Various depayloader statistics retrieved atomically (and are therefore synchroized with each other). This property return a GstStructure named application/x-rtp-depayload-stats containing the following fields relating to the last processed buffer and current state of the stream being depayloaded:
-
clock-rate
: G_TYPE_UINT, clock-rate of the stream -
npt-start
: G_TYPE_UINT64, time of playback start -
npt-stop
: G_TYPE_UINT64, time of playback stop -
play-speed
: G_TYPE_DOUBLE, the playback speed -
play-scale
: G_TYPE_DOUBLE, the playback scale -
running-time-dts
: G_TYPE_UINT64, the last running-time of the last DTS -
running-time-pts
: G_TYPE_UINT64, the last running-time of the last PTS -
seqnum
: G_TYPE_UINT, the last seen seqnum -
timestamp
: G_TYPE_UINT, the last seen RTP timestamp
Flags : Read
stats
“stats” Gst.Structure
Various depayloader statistics retrieved atomically (and are therefore synchroized with each other). This property return a GstStructure named application/x-rtp-depayload-stats containing the following fields relating to the last processed buffer and current state of the stream being depayloaded:
-
clock-rate
: G_TYPE_UINT (not introspectable), clock-rate of the stream -
npt-start
: G_TYPE_UINT64 (not introspectable), time of playback start -
npt-stop
: G_TYPE_UINT64 (not introspectable), time of playback stop -
play-speed
: G_TYPE_DOUBLE (not introspectable), the playback speed -
play-scale
: G_TYPE_DOUBLE (not introspectable), the playback scale -
running-time-dts
: G_TYPE_UINT64 (not introspectable), the last running-time of the last DTS -
running-time-pts
: G_TYPE_UINT64 (not introspectable), the last running-time of the last PTS -
seqnum
: G_TYPE_UINT (not introspectable), the last seen seqnum -
timestamp
: G_TYPE_UINT (not introspectable), the last seen RTP timestamp
Flags : Read
stats
“self.props.stats” Gst.Structure
Various depayloader statistics retrieved atomically (and are therefore synchroized with each other). This property return a GstStructure named application/x-rtp-depayload-stats containing the following fields relating to the last processed buffer and current state of the stream being depayloaded:
-
clock-rate
: G_TYPE_UINT (not introspectable), clock-rate of the stream -
npt-start
: G_TYPE_UINT64 (not introspectable), time of playback start -
npt-stop
: G_TYPE_UINT64 (not introspectable), time of playback stop -
play-speed
: G_TYPE_DOUBLE (not introspectable), the playback speed -
play-scale
: G_TYPE_DOUBLE (not introspectable), the playback scale -
running-time-dts
: G_TYPE_UINT64 (not introspectable), the last running-time of the last DTS -
running-time-pts
: G_TYPE_UINT64 (not introspectable), the last running-time of the last PTS -
seqnum
: G_TYPE_UINT (not introspectable), the last seen seqnum -
timestamp
: G_TYPE_UINT (not introspectable), the last seen RTP timestamp
Flags : Read
Virtual Methods
handle_event
gboolean handle_event (GstRTPBaseDepayload * filter, GstEvent * event)
custom event handling
Parameters:
filter
–
event
–
handle_event
function handle_event(filter: GstRtp.RTPBaseDepayload, event: Gst.Event): {
// javascript implementation of the 'handle_event' virtual method
}
custom event handling
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
event
(
Gst.Event
)
–
handle_event
def handle_event (filter, event):
#python implementation of the 'handle_event' virtual method
custom event handling
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
event
(
Gst.Event
)
–
packet_lost
gboolean packet_lost (GstRTPBaseDepayload * filter, GstEvent * event)
signal the depayloader about packet loss
Parameters:
filter
–
event
–
packet_lost
function packet_lost(filter: GstRtp.RTPBaseDepayload, event: Gst.Event): {
// javascript implementation of the 'packet_lost' virtual method
}
signal the depayloader about packet loss
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
event
(
Gst.Event
)
–
packet_lost
def packet_lost (filter, event):
#python implementation of the 'packet_lost' virtual method
signal the depayloader about packet loss
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
event
(
Gst.Event
)
–
process
GstBuffer * process (GstRTPBaseDepayload * base, GstBuffer * in)
process incoming rtp packets. Subclass must implement either this method or process_rtp_packet to process incoming rtp packets. If the child returns a buffer without a valid timestamp, the timestamp of the provided buffer will be applied to the result buffer and the buffer will be pushed. If this function returns NULL, nothing is pushed.
Parameters:
base
–
in
–
process
function process(base: GstRtp.RTPBaseDepayload, in: Gst.Buffer): {
// javascript implementation of the 'process' virtual method
}
process incoming rtp packets. Subclass must implement either this method or process_rtp_packet to process incoming rtp packets. If the child returns a buffer without a valid timestamp, the timestamp of the provided buffer will be applied to the result buffer and the buffer will be pushed. If this function returns NULL, nothing is pushed.
Parameters:
base
(
GstRtp.RTPBaseDepayload
)
–
in
(
Gst.Buffer
)
–
process
def process (base, in):
#python implementation of the 'process' virtual method
process incoming rtp packets. Subclass must implement either this method or process_rtp_packet to process incoming rtp packets. If the child returns a buffer without a valid timestamp, the timestamp of the provided buffer will be applied to the result buffer and the buffer will be pushed. If this function returns NULL, nothing is pushed.
Parameters:
base
(
GstRtp.RTPBaseDepayload
)
–
in
(
Gst.Buffer
)
–
process_rtp_packet
GstBuffer * process_rtp_packet (GstRTPBaseDepayload * base, GstRTPBuffer * rtp_buffer)
Same as the process virtual function, but slightly more efficient, since it is passed the rtp buffer structure that has already been mapped (with GST_MAP_READ) by the base class and thus does not have to be mapped again by the subclass. Can be used by the subclass to process incoming rtp packets. If the subclass returns a buffer without a valid timestamp, the timestamp of the input buffer will be applied to the result buffer and the output buffer will be pushed out. If this function returns NULL, nothing is pushed out. Since: 1.6.
Parameters:
base
–
rtp_buffer
–
process_rtp_packet
function process_rtp_packet(base: GstRtp.RTPBaseDepayload, rtp_buffer: GstRtp.RTPBuffer): {
// javascript implementation of the 'process_rtp_packet' virtual method
}
Same as the process virtual function, but slightly more efficient, since it is passed the rtp buffer structure that has already been mapped (with GST_MAP_READ) by the base class and thus does not have to be mapped again by the subclass. Can be used by the subclass to process incoming rtp packets. If the subclass returns a buffer without a valid timestamp, the timestamp of the input buffer will be applied to the result buffer and the output buffer will be pushed out. If this function returns NULL, nothing is pushed out. Since: 1.6.
Parameters:
base
(
GstRtp.RTPBaseDepayload
)
–
rtp_buffer
(
GstRtp.RTPBuffer
)
–
process_rtp_packet
def process_rtp_packet (base, rtp_buffer):
#python implementation of the 'process_rtp_packet' virtual method
Same as the process virtual function, but slightly more efficient, since it is passed the rtp buffer structure that has already been mapped (with GST_MAP_READ) by the base class and thus does not have to be mapped again by the subclass. Can be used by the subclass to process incoming rtp packets. If the subclass returns a buffer without a valid timestamp, the timestamp of the input buffer will be applied to the result buffer and the output buffer will be pushed out. If this function returns NULL, nothing is pushed out. Since: 1.6.
Parameters:
base
(
GstRtp.RTPBaseDepayload
)
–
rtp_buffer
(
GstRtp.RTPBuffer
)
–
set_caps
gboolean set_caps (GstRTPBaseDepayload * filter, GstCaps * caps)
configure the depayloader
Parameters:
filter
–
caps
–
set_caps
function set_caps(filter: GstRtp.RTPBaseDepayload, caps: Gst.Caps): {
// javascript implementation of the 'set_caps' virtual method
}
configure the depayloader
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
caps
(
Gst.Caps
)
–
set_caps
def set_caps (filter, caps):
#python implementation of the 'set_caps' virtual method
configure the depayloader
Parameters:
filter
(
GstRtp.RTPBaseDepayload
)
–
caps
(
Gst.Caps
)
–
Function Macros
GST_RTP_BASE_DEPAYLOAD_CAST
#define GST_RTP_BASE_DEPAYLOAD_CAST(obj) ((GstRTPBaseDepayload *)(obj))
GST_RTP_BASE_DEPAYLOAD_SINKPAD
#define GST_RTP_BASE_DEPAYLOAD_SINKPAD(depayload) (GST_RTP_BASE_DEPAYLOAD_CAST (depayload)->sinkpad)
GST_RTP_BASE_DEPAYLOAD_SRCPAD
#define GST_RTP_BASE_DEPAYLOAD_SRCPAD(depayload) (GST_RTP_BASE_DEPAYLOAD_CAST (depayload)->srcpad)
The results of the search are