RTPBasePayload.getSourceCount

Count the total number of RTP sources found in the meta of buffer, which will be automically added by gstrtp.rtpbase_payload.RTPBasePayload.allocateOutputBuffer. If #GstRTPBasePayload:source-info is false the count will be 0.

class RTPBasePayload
uint
getSourceCount

Parameters

buffer gst.buffer.Buffer

a #GstBuffer, typically the buffer to payload

Return Value

Type: uint

The number of sources.