Class RtpPacket.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.source.rtsp.RtpPacket.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtpPacket
build()
Builds theRtpPacket
.RtpPacket.Builder
setCsrc(byte[] csrc)
SetsRtpPacket.csrc
.RtpPacket.Builder
setMarker(boolean marker)
SetsRtpPacket.marker
.RtpPacket.Builder
setPadding(boolean padding)
Sets theRtpPacket.padding
.RtpPacket.Builder
setPayloadData(byte[] payloadData)
SetsRtpPacket.payloadData
.RtpPacket.Builder
setPayloadType(byte payloadType)
SetsRtpPacket.payloadType
.RtpPacket.Builder
setSequenceNumber(int sequenceNumber)
SetsRtpPacket.sequenceNumber
.RtpPacket.Builder
setSsrc(int ssrc)
SetsRtpPacket.ssrc
.RtpPacket.Builder
setTimestamp(long timestamp)
SetsRtpPacket.timestamp
.
-
-
-
Method Detail
-
setPadding
@CanIgnoreReturnValue public RtpPacket.Builder setPadding(boolean padding)
Sets theRtpPacket.padding
. The default is false.
-
setMarker
@CanIgnoreReturnValue public RtpPacket.Builder setMarker(boolean marker)
SetsRtpPacket.marker
. The default is false.
-
setPayloadType
@CanIgnoreReturnValue public RtpPacket.Builder setPayloadType(byte payloadType)
SetsRtpPacket.payloadType
. The default is 0.
-
setSequenceNumber
@CanIgnoreReturnValue public RtpPacket.Builder setSequenceNumber(int sequenceNumber)
SetsRtpPacket.sequenceNumber
. The default is 0.
-
setTimestamp
@CanIgnoreReturnValue public RtpPacket.Builder setTimestamp(long timestamp)
SetsRtpPacket.timestamp
. The default is 0.
-
setSsrc
@CanIgnoreReturnValue public RtpPacket.Builder setSsrc(int ssrc)
SetsRtpPacket.ssrc
. The default is 0.
-
setCsrc
@CanIgnoreReturnValue public RtpPacket.Builder setCsrc(byte[] csrc)
SetsRtpPacket.csrc
. The default is an empty byte array.
-
setPayloadData
@CanIgnoreReturnValue public RtpPacket.Builder setPayloadData(byte[] payloadData)
SetsRtpPacket.payloadData
. The default is an empty byte array.
-
-