get_source_count


Description:

[ Version ( since = "1.16" ) ]
public uint get_source_count (Buffer buffer)

Count the total number of RTP sources found in the meta of buffer, which will be automically added by allocate_output_buffer.

If source_info is false the count will be 0.

Parameters:

this

a BasePayload

buffer

a Buffer, typically the buffer to payload

Returns:

The number of sources.