RTPBasePayload.getSourceCount
uint getSourceCount(gst.buffer.Buffer buffer)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.
Parameters
buffer | a #GstBuffer, typically the buffer to payload |
Returns
The number of sources.