public interface MediaFormatFactory
Modifier and Type | Field and Description |
---|---|
static int |
CHANNELS_NOT_SPECIFIED
The constant to be used as an argument representing number of channels to
denote that a specific number of channels is not specified.
|
static double |
CLOCK_RATE_NOT_SPECIFIED
The constant to be used as an argument representing a clock rate to
denote that a specific clock rate is not specified.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
createMediaFormat(byte rtpPayloadType)
Creates a MediaFormat for the specified RTP payload type with
default clock rate and set of format parameters.
|
MediaFormat |
createMediaFormat(byte rtpPayloadType,
java.lang.String encoding,
double clockRate,
int channels,
float frameRate,
java.util.Map<java.lang.String,java.lang.String> formatParams,
java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
Creates a MediaFormat either for the specified
rtpPayloadType or for the specified encoding,
clockRate, channels and set of format parameters.
|
MediaFormat |
createMediaFormat(java.lang.String encoding)
Creates a MediaFormat for the specified encoding with
default clock rate and set of format parameters.
|
MediaFormat |
createMediaFormat(java.lang.String encoding,
double clockRate)
Creates a MediaFormat for the specified encoding with
the specified clockRate and a default set of format parameters.
|
MediaFormat |
createMediaFormat(java.lang.String encoding,
double clockRate,
int channels)
Creates a MediaFormat for the specified encoding,
clockRate and channels and a default set of format
parameters.
|
MediaFormat |
createMediaFormat(java.lang.String encoding,
double clockRate,
int channels,
float frameRate,
java.util.Map<java.lang.String,java.lang.String> formatParams,
java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
Creates a MediaFormat for the specified encoding,
clockRate, channels and set of format parameters.
|
MediaFormat |
createMediaFormat(java.lang.String encoding,
double clockRate,
java.util.Map<java.lang.String,java.lang.String> formatParams,
java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
Creates a MediaFormat for the specified encoding,
clockRate and set of format parameters.
|
MediaFormat |
createUnknownMediaFormat(MediaType type)
Creates an unknown MediaFormat.
|
static final int CHANNELS_NOT_SPECIFIED
static final double CLOCK_RATE_NOT_SPECIFIED
MediaFormat createUnknownMediaFormat(MediaType type)
type
- MediaTypeMediaFormat createMediaFormat(java.lang.String encoding)
encoding
- the well-known encoding (name) to create a
MediaFormat forMediaFormat createMediaFormat(byte rtpPayloadType)
rtpPayloadType
- the RTP payload type of the MediaFormat to
createMediaFormat createMediaFormat(java.lang.String encoding, double clockRate)
encoding
- the well-known encoding (name) to create a
MediaFormat forclockRate
- the clock rate in Hz to create a MediaFormat
forMediaFormat createMediaFormat(java.lang.String encoding, double clockRate, int channels)
encoding
- the well-known encoding (name) to create a
MediaFormat forclockRate
- the clock rate in Hz to create a MediaFormat
forchannels
- the number of available channels (1 for mono, 2 for
stereo) if it makes sense for the MediaFormat with the specified
encoding; otherwise, ignoredMediaFormat createMediaFormat(java.lang.String encoding, double clockRate, java.util.Map<java.lang.String,java.lang.String> formatParams, java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
encoding
- the well-known encoding (name) to create a
MediaFormat forclockRate
- the clock rate in Hz to create a MediaFormat
forformatParams
- any codec specific parameters which have been
received via SIP/SDP or XMPP/JingleadvancedAttrs
- advanced attributes received via SIP/SDP or
XMPP/JingleMediaFormat createMediaFormat(java.lang.String encoding, double clockRate, int channels, float frameRate, java.util.Map<java.lang.String,java.lang.String> formatParams, java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
encoding
- the well-known encoding (name) to create a
MediaFormat forclockRate
- the clock rate in Hz to create a MediaFormat
forframeRate
- the frame rate in number of frames per second to
create a MediaFormat forchannels
- the number of available channels (1 for mono, 2 for
stereo) if it makes sense for the MediaFormat with the specified
encoding; otherwise, ignoredformatParams
- any codec specific parameters which have been
received via SIP/SDP or XMPP/JingleadvancedAttrs
- advanced attributes received via SIP/SDP or
XMPP/JingleMediaFormat createMediaFormat(byte rtpPayloadType, java.lang.String encoding, double clockRate, int channels, float frameRate, java.util.Map<java.lang.String,java.lang.String> formatParams, java.util.Map<java.lang.String,java.lang.String> advancedAttrs)
MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN
and encoding is
null, uses the encoding associated with rtpPayloadType.rtpPayloadType
- the RTP payload type to create a
MediaFormat for; MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN
if
encoding is not null. If rtpPayloadType is not
MediaFormat#RTP_PAYLOAD_TYPE_UNKNOWN and encoding is
not null, rtpPayloadType is ignoredencoding
- the well-known encoding (name) to create a
MediaFormat for; nullclockRate
- the clock rate in Hz to create a MediaFormat
forframeRate
- the frame rate in number of frames per second to
create a MediaFormat forchannels
- the number of available channels (1 for mono, 2 for
stereo) if it makes sense for the MediaFormat with the specified
encoding; otherwise, ignoredformatParams
- any codec specific parameters which have been
received via SIP/SDP or XMPP/JingleadvancedAttrs
- advanced attributes received via SIP/SDP or
XMPP/Jingle
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.