|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.MediaUtils
public class MediaUtils
Implements static utility methods used by media classes.
| Field Summary | |
|---|---|
static int |
UNKNOWN_ENCODING
Returned by sdpToJmfEncoding(String) if it does not know the
given encoding. |
| Constructor Summary | |
|---|---|
MediaUtils()
|
|
| Method Summary | |
|---|---|
static int |
jmfToSdpEncoding(String jmfEncoding)
Returns the SDP encoding number corresponding to jmfFormat. |
static String |
sdpToJmfEncoding(String sdpEncodingStr)
Returns the String encoding, as specified in AudioFormat and VideoFormat, corresponding to the format specified in sdpFormatStr |
static List<String> |
sdpToJmfEncodings(List<String> sdpEncodings)
Converts the list of sdpEncodings to a list of jmf compatible encoding strings as specified by the static vars in VideoFormat and AudioFormat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN_ENCODING
sdpToJmfEncoding(String) if it does not know the
given encoding.
| Constructor Detail |
|---|
public MediaUtils()
| Method Detail |
|---|
public static String sdpToJmfEncoding(String sdpEncodingStr)
sdpEncodingStr - the SDP index that we'd like to convert to a JMF
format.
public static int jmfToSdpEncoding(String jmfEncoding)
jmfEncoding - one of the AudioFormat.XXX or VideoFormat.XXX format
strings.
UNKNOWN_ENCODING if the encoding is not supported or
jmfEncoding is null.public static List<String> sdpToJmfEncodings(List<String> sdpEncodings)
sdpEncodings - a list containing strings representing SDP format
codes.
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||