RTPBuffer.getPayloadSubbuffer

gst.buffer.Buffer getPayloadSubbuffer(uint offset, uint len)

Create a subbuffer of the payload of the RTP packet in buffer. offset bytes are skipped in the payload and the subbuffer will be of size len. If len is -1 the total payload starting from offset is subbuffered.

Parameters

offsetthe offset in the payload
lenthe length in the payload

Returns

A new buffer with the specified data of the payload.