public final class RtpPacket.Builder


Builder class for an RtpPacket

Summary

Public constructors

Public constructors

Builder

public Builder()

Public methods

build

public RtpPacket build()

Builds the RtpPacket.

setCsrc

@CanIgnoreReturnValue
public RtpPacket.Builder setCsrc(byte[] csrc)

Sets csrc. The default is an empty byte array.

setMarker

@CanIgnoreReturnValue
public RtpPacket.Builder setMarker(boolean marker)

Sets marker. The default is false.

setPadding

@CanIgnoreReturnValue
public RtpPacket.Builder setPadding(boolean padding)

Sets the padding. The default is false.

setPayloadData

@CanIgnoreReturnValue
public RtpPacket.Builder setPayloadData(byte[] payloadData)

Sets payloadData. The default is an empty byte array.

setPayloadType

@CanIgnoreReturnValue
public RtpPacket.Builder setPayloadType(byte payloadType)

Sets payloadType. The default is 0.

setSequenceNumber

@CanIgnoreReturnValue
public RtpPacket.Builder setSequenceNumber(int sequenceNumber)

Sets sequenceNumber. The default is 0.

setSsrc

@CanIgnoreReturnValue
public RtpPacket.Builder setSsrc(int ssrc)

Sets ssrc. The default is 0.

setTimestamp

@CanIgnoreReturnValue
public RtpPacket.Builder setTimestamp(long timestamp)

Sets timestamp. The default is 0.