|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaFormat
The MediaFormat interface represents a generic (i.e. audio/video or other) format used to represent media represent a media stream.
The interface contains utility methods for extracting common media format properties such as the name of the underlying encoding, or clock rate or in order comparing to compare formats. Extending interfaces representing audio or video formats are likely to add other methods.
| Field Summary | |
|---|---|
static int |
MAX_DYNAMIC_PAYLOAD_TYPE
The maximum integer that is allowed for use in dynamic payload type assignment. |
static int |
MIN_DYNAMIC_PAYLOAD_TYPE
The minimum integer that is allowed for use in dynamic payload type assignment. |
static byte |
RTP_PAYLOAD_TYPE_UNKNOWN
The constant returned by getRTPPayloadType() when the
MediaFormat instance describes a format without an RTP payload
type (number) known in RFC 3551 "RTP Profile for Audio and Video
Conferences with Minimal Control". |
| Method Summary | |
|---|---|
boolean |
equals(Object mediaFormat)
Determines whether this MediaFormat is equal to mediaFormat i.e. |
boolean |
formatParametersMatch(Map<String,String> fmtps)
Determines whether the format parameters of this MediaFormat match a specific set of format parameters. |
Map<String,String> |
getAdditionalCodecSettings()
Returns additional codec settings. |
Map<String,String> |
getAdvancedAttributes()
Returns a Map containing advanced parameters specific to this particular MediaFormat. |
double |
getClockRate()
Returns the clock rate associated with this MediaFormat. |
String |
getClockRateString()
Returns a String representation of the clock rate associated with this MediaFormat making sure that the value appears as an integer (i.e. |
String |
getEncoding()
Returns the name of the encoding (i.e. |
Map<String,String> |
getFormatParameters()
Returns a Map containing parameters specific to this particular MediaFormat. |
MediaType |
getMediaType()
Returns the type of this MediaFormat (e.g. |
byte |
getRTPPayloadType()
Gets the RTP payload type (number) of this MediaFormat as it is known in RFC 3551 "RTP Profile for Audio and Video Conferences with Minimal Control". |
void |
setAdditionalCodecSettings(Map<String,String> settings)
Sets additional codec settings. |
String |
toString()
Returns a String representation of this MediaFormat containing important format attributes such as the encoding for example. |
| Field Detail |
|---|
static final byte RTP_PAYLOAD_TYPE_UNKNOWN
getRTPPayloadType() when the
MediaFormat instance describes a format without an RTP payload
type (number) known in RFC 3551 "RTP Profile for Audio and Video
Conferences with Minimal Control".
static final int MIN_DYNAMIC_PAYLOAD_TYPE
static final int MAX_DYNAMIC_PAYLOAD_TYPE
| Method Detail |
|---|
MediaType getMediaType()
String getEncoding()
double getClockRate()
String getClockRateString()
boolean equals(Object mediaFormat)
equals in class ObjectmediaFormat - the MediaFormat to compare to this instance
boolean formatParametersMatch(Map<String,String> fmtps)
fmtps - the set of format parameters to match to the format
parameters of this MediaFormat
Map<String,String> getAdvancedAttributes()
Map<String,String> getFormatParameters()
byte getRTPPayloadType()
RTP_PAYLOAD_TYPE_UNKNOWNvoid setAdditionalCodecSettings(Map<String,String> settings)
settings - additional settings represented by a map.Map<String,String> getAdditionalCodecSettings()
String toString()
toString in class Object
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||