Class RtpPayloadFormat
- java.lang.Object
-
- com.google.android.exoplayer2.source.rtsp.RtpPayloadFormat
-
@Deprecated public final class RtpPayloadFormat extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Represents the payload format used in RTP.In RTSP playback, the format information is always present in the
SessionDescription
enclosed in the response of a DESCRIBE request. Within each track'sMediaDescription
, it is the attributes FMTP and RTPMAP that allows us to recreate the media format.This class wraps around the
Format
class, in addition to the instance fields that are specific to RTP.
-
-
Field Summary
Fields Modifier and Type Field Description int
clockRate
Deprecated.The clock rate in Hertz, associated with the format.ImmutableMap<String,String>
fmtpParameters
Deprecated.The format parameters, mapped from the SDP FMTP attribute (RFC2327 Page 22).Format
format
Deprecated.TheFormat
of this RTP payload.String
mediaEncoding
Deprecated.The RTP media encoding.static String
RTP_MEDIA_AC3
Deprecated.static String
RTP_MEDIA_AMR
Deprecated.static String
RTP_MEDIA_AMR_WB
Deprecated.static String
RTP_MEDIA_H263_1998
Deprecated.static String
RTP_MEDIA_H263_2000
Deprecated.static String
RTP_MEDIA_H264
Deprecated.static String
RTP_MEDIA_H265
Deprecated.static String
RTP_MEDIA_MPEG4_GENERIC
Deprecated.static String
RTP_MEDIA_MPEG4_LATM_AUDIO
Deprecated.static String
RTP_MEDIA_MPEG4_VIDEO
Deprecated.static String
RTP_MEDIA_OPUS
Deprecated.static String
RTP_MEDIA_PCM_L16
Deprecated.static String
RTP_MEDIA_PCM_L8
Deprecated.static String
RTP_MEDIA_PCMA
Deprecated.static String
RTP_MEDIA_PCMU
Deprecated.static String
RTP_MEDIA_VP8
Deprecated.static String
RTP_MEDIA_VP9
Deprecated.int
rtpPayloadType
Deprecated.The payload type associated with this format.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.static String
getMimeTypeFromRtpMediaType(String mediaType)
Deprecated.Gets the MIME type that is associated with the RTP media type.static @com.google.android.exoplayer2.C.PcmEncoding int
getRawPcmEncodingType(String mediaEncoding)
Deprecated.Returns the PCM encoding type formediaEncoding
.int
hashCode()
Deprecated.
-
-
-
Field Detail
-
RTP_MEDIA_AC3
public static final String RTP_MEDIA_AC3
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_AMR
public static final String RTP_MEDIA_AMR
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_AMR_WB
public static final String RTP_MEDIA_AMR_WB
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_MPEG4_GENERIC
public static final String RTP_MEDIA_MPEG4_GENERIC
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_MPEG4_LATM_AUDIO
public static final String RTP_MEDIA_MPEG4_LATM_AUDIO
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_MPEG4_VIDEO
public static final String RTP_MEDIA_MPEG4_VIDEO
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_H263_1998
public static final String RTP_MEDIA_H263_1998
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_H263_2000
public static final String RTP_MEDIA_H263_2000
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_H264
public static final String RTP_MEDIA_H264
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_H265
public static final String RTP_MEDIA_H265
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_OPUS
public static final String RTP_MEDIA_OPUS
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_PCM_L8
public static final String RTP_MEDIA_PCM_L8
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_PCM_L16
public static final String RTP_MEDIA_PCM_L16
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_PCMA
public static final String RTP_MEDIA_PCMA
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_PCMU
public static final String RTP_MEDIA_PCMU
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_VP8
public static final String RTP_MEDIA_VP8
Deprecated.- See Also:
- Constant Field Values
-
RTP_MEDIA_VP9
public static final String RTP_MEDIA_VP9
Deprecated.- See Also:
- Constant Field Values
-
rtpPayloadType
public final int rtpPayloadType
Deprecated.The payload type associated with this format.
-
clockRate
public final int clockRate
Deprecated.The clock rate in Hertz, associated with the format.
-
fmtpParameters
public final ImmutableMap<String,String> fmtpParameters
Deprecated.The format parameters, mapped from the SDP FMTP attribute (RFC2327 Page 22).
-
mediaEncoding
public final String mediaEncoding
Deprecated.The RTP media encoding.
-
-
Constructor Detail
-
RtpPayloadFormat
public RtpPayloadFormat(Format format, int rtpPayloadType, int clockRate, Map<String,String> fmtpParameters, String mediaEncoding)
Deprecated.Creates a new instance.- Parameters:
format
- The associatedmedia format
.rtpPayloadType
- The assigned RTP payload type, from the RTPMAP attribute inMediaDescription
.clockRate
- The associated clock rate in hertz.fmtpParameters
- The format parameters, from the SDP FMTP attribute (RFC2327 Page 22), empty if unset. The keys and values are specified in the RFCs for specific formats. For instance, RFC3640 Section 4.1 defines keys like profile-level-id and config.mediaEncoding
- The RTP media encoding.
-
-
Method Detail
-
getMimeTypeFromRtpMediaType
public static String getMimeTypeFromRtpMediaType(String mediaType)
Deprecated.Gets the MIME type that is associated with the RTP media type.For instance, RTP media type "H264" maps to
MimeTypes.VIDEO_H264
.- Throws:
IllegalArgumentException
- When the media type is not supported/recognized.
-
getRawPcmEncodingType
public static @com.google.android.exoplayer2.C.PcmEncoding int getRawPcmEncodingType(String mediaEncoding)
Deprecated.Returns the PCM encoding type formediaEncoding
.
-
-