GstRtp.RTPSourceMeta

Fields

Name Type Access Description
csrc [int] r/w pointer to the CSRCs
csrc_count int r/w number of elements in csrc
meta Gst.Meta r/w parent Gst.Meta
ssrc int r/w the SSRC
ssrc_valid bool r/w whether ssrc is set and valid

Methods

class get_info ()
  append_csrc (csrc, csrc_count)
  get_source_count ()
  set_ssrc (ssrc)

Details

class GstRtp.RTPSourceMeta

Meta describing the source(s) of the buffer.

New in version 1.16.

classmethod get_info()[source]
Return type:Gst.MetaInfo
append_csrc(csrc, csrc_count)[source]
Parameters:
  • csrc (int) – the csrcs to append
  • csrc_count (int) – number of elements in csrc
Returns:

True if all elements in csrc was added, False otherwise.

Return type:

bool

Appends csrc to the list of contributing sources in self.

New in version 1.16.

get_source_count()[source]
Returns:The number of RTP sources
Return type:int

Count the total number of RTP sources found in self, both SSRC and CSRC.

New in version 1.16.

set_ssrc(ssrc)[source]
Parameters:ssrc (int or None) – pointer to the SSRC
Returns:True on success, False otherwise.
Return type:bool

Sets ssrc in self. If ssrc is None the ssrc of self will be unset.

New in version 1.16.