public final class

RtpPacket.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.rtsp.RtpPacket.Builder

Overview

Builder class for an RtpPacket

Summary

Constructors
publicBuilder()

Methods
public RtpPacketbuild()

Builds the RtpPacket.

public RtpPacket.BuildersetCsrc(byte[] csrc[])

Sets RtpPacket.csrc.

public RtpPacket.BuildersetMarker(boolean marker)

Sets RtpPacket.marker.

public RtpPacket.BuildersetPadding(boolean padding)

Sets the RtpPacket.padding.

public RtpPacket.BuildersetPayloadData(byte[] payloadData[])

Sets RtpPacket.payloadData.

public RtpPacket.BuildersetPayloadType(byte payloadType)

Sets RtpPacket.payloadType.

public RtpPacket.BuildersetSequenceNumber(int sequenceNumber)

Sets RtpPacket.sequenceNumber.

public RtpPacket.BuildersetSsrc(int ssrc)

Sets RtpPacket.ssrc.

public RtpPacket.BuildersetTimestamp(long timestamp)

Sets RtpPacket.timestamp.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public RtpPacket.Builder setPadding(boolean padding)

Sets the RtpPacket.padding. The default is false.

public RtpPacket.Builder setMarker(boolean marker)

Sets RtpPacket.marker. The default is false.

public RtpPacket.Builder setPayloadType(byte payloadType)

Sets RtpPacket.payloadType. The default is 0.

public RtpPacket.Builder setSequenceNumber(int sequenceNumber)

Sets RtpPacket.sequenceNumber. The default is 0.

public RtpPacket.Builder setTimestamp(long timestamp)

Sets RtpPacket.timestamp. The default is 0.

public RtpPacket.Builder setSsrc(int ssrc)

Sets RtpPacket.ssrc. The default is 0.

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

Sets RtpPacket.csrc. The default is an empty byte array.

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

Sets RtpPacket.payloadData. The default is an empty byte array.

public RtpPacket build()

Builds the RtpPacket.