Package buzz.getcoco.media.utils.sdp
Class RtpMapAttribute
- java.lang.Object
-
- buzz.getcoco.media.utils.sdp.RtpMapAttribute
-
public final class RtpMapAttribute extends java.lang.Object
Represents the mandatory RTPMAP attribute in MediaDescription. Reference RFC 2327 Page 22.
-
-
Field Summary
Fields Modifier and Type Field Description int
clockRate
The clock rate used in the RTP stream.int
encodingParameters
The optional encoding parameter.java.lang.String
mediaEncoding
The encoding method used in the RTP stream.int
payloadType
The assigned RTP payload type.
-
Constructor Summary
Constructors Constructor Description RtpMapAttribute(int payloadType, java.lang.String mediaEncoding, int clockRate, int encodingParameters)
constructor for this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
static RtpMapAttribute
parse(java.lang.String rtpmapString)
Parses the RTPMAP attribute value (with the part "a=rtpmap:" removed).java.lang.String
toString()
-
-
-
Field Detail
-
payloadType
public final int payloadType
The assigned RTP payload type.
-
mediaEncoding
public final java.lang.String mediaEncoding
The encoding method used in the RTP stream.
-
clockRate
public final int clockRate
The clock rate used in the RTP stream.
-
encodingParameters
public final int encodingParameters
The optional encoding parameter.
-
-
Constructor Detail
-
RtpMapAttribute
public RtpMapAttribute(int payloadType, java.lang.String mediaEncoding, int clockRate, int encodingParameters)
constructor for this class.- Parameters:
payloadType
- The type of payload according to rfc6416mediaEncoding
- The encoding format (H264, MP4A-LATM, etc..)clockRate
- The clock rate according to rfc6416encodingParameters
- channels in case of audio according to rfc4566
-
-
Method Detail
-
parse
@NonNull public static RtpMapAttribute parse(@NonNull java.lang.String rtpmapString) throws com.google.android.exoplayer2.ParserException
Parses the RTPMAP attribute value (with the part "a=rtpmap:" removed).- Throws:
com.google.android.exoplayer2.ParserException
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-