class RtpPacket.Builder


Builder class for an RtpPacket

Summary

Public constructors

Public constructors

Builder

Builder()

Public functions

build

fun build(): RtpPacket!

Builds the RtpPacket.

setCsrc

@CanIgnoreReturnValue
fun setCsrc(csrc: ByteArray!): RtpPacket.Builder!

Sets csrc. The default is an empty byte array.

setMarker

@CanIgnoreReturnValue
fun setMarker(marker: Boolean): RtpPacket.Builder!

Sets marker. The default is false.

setPadding

@CanIgnoreReturnValue
fun setPadding(padding: Boolean): RtpPacket.Builder!

Sets the padding. The default is false.

setPayloadData

@CanIgnoreReturnValue
fun setPayloadData(payloadData: ByteArray!): RtpPacket.Builder!

Sets payloadData. The default is an empty byte array.

setPayloadType

@CanIgnoreReturnValue
fun setPayloadType(payloadType: Byte): RtpPacket.Builder!

Sets payloadType. The default is 0.

setSequenceNumber

@CanIgnoreReturnValue
fun setSequenceNumber(sequenceNumber: Int): RtpPacket.Builder!

Sets sequenceNumber. The default is 0.

setSsrc

@CanIgnoreReturnValue
fun setSsrc(ssrc: Int): RtpPacket.Builder!

Sets ssrc. The default is 0.

setTimestamp

@CanIgnoreReturnValue
fun setTimestamp(timestamp: Long): RtpPacket.Builder!

Sets timestamp. The default is 0.