RTPBuffer.getPayloadSubbuffer

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.

class RTPBuffer
getPayloadSubbuffer
(
uint offset
,
uint len
)

Parameters

offset uint

the offset in the payload

len uint

the length in the payload

Return Value

Type: gst.buffer.Buffer

A new buffer with the specified data of the payload.