Modifier and Type | Field and Description |
---|---|
static MediaFormat[] |
MediaUtils.EMPTY_MEDIA_FORMATS
An empty array with MediaFormat element type.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
MediaStreamImpl.getFormat()
Gets the MediaFormat that this stream is currently transmitting
in.
|
MediaFormat |
MediaStreamImpl.getFormat(byte pt)
Returns the MediaFormat that is associated to the payload type
passed in as a parameter.
|
static MediaFormat |
MediaUtils.getMediaFormat(javax.media.Format format)
Gets a MediaFormat predefined in MediaUtils which
represents a specific JMF Format.
|
static MediaFormat |
MediaUtils.getMediaFormat(java.lang.String encoding,
double clockRate)
Gets the MediaFormat known to MediaUtils and having the
specified well-known encoding (name) and clockRate.
|
static MediaFormat |
MediaUtils.getMediaFormat(java.lang.String encoding,
double clockRate,
java.util.Map<java.lang.String,java.lang.String> fmtps)
Gets the MediaFormat known to MediaUtils and having the
specified well-known encoding (name), clockRate and
matching format parameters.
|
static MediaFormat[] |
MediaUtils.getMediaFormats(byte rtpPayloadType)
Gets the MediaFormats (expressed as an array) corresponding to
a specific RTP payload type.
|
static MediaFormat[] |
MediaUtils.getMediaFormats(MediaType mediaType)
Gets the MediaFormats known to MediaUtils and being of
the specified MediaType.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<MediaFormat,java.lang.Byte> |
MediaServiceImpl.getDynamicPayloadTypePreferences()
Returns a
Map that binds indicates whatever preferences this
media service implementation may have for the RTP payload type numbers
that get dynamically assigned to MediaFormat s with no static
payload type. |
java.util.Map<java.lang.Byte,MediaFormat> |
MediaStreamImpl.getDynamicRTPPayloadTypes()
Gets the existing associations in this MediaStream of RTP
payload types to MediaFormats.
|
static java.util.List<MediaFormat> |
MediaUtils.getMediaFormats(java.lang.String encoding)
Gets the MediaFormats predefined in MediaUtils with a
specific well-known encoding (name) as defined by RFC 3551 "RTP Profile
for Audio and Video Conferences with Minimal Control".
|
Modifier and Type | Method and Description |
---|---|
void |
MediaStreamImpl.addDynamicRTPPayloadType(byte rtpPayloadType,
MediaFormat format)
Adds a new association in this MediaStream of the specified RTP
payload type with the specified MediaFormat in order to allow it
to report rtpPayloadType in RTP flows sending and receiving
media in format.
|
static int |
MediaUtils.getMediaFormatIndex(MediaFormat mediaFormat)
Gets the index of a specific MediaFormat instance within the
internal storage of MediaUtils.
|
protected void |
VideoMediaStreamImpl.handleAttributes(MediaFormat format,
java.util.Map<java.lang.String,java.lang.String> attrs)
Handles attributes contained in MediaFormat.
|
void |
MediaStreamImpl.setFormat(MediaFormat format)
Sets the MediaFormat that this MediaStream should
transmit in.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat[] |
EncodingConfigurationImpl.getAllEncodings(MediaType type)
Returns all the available encodings for a specific MediaType.
|
Modifier and Type | Method and Description |
---|---|
protected int |
EncodingConfigurationImpl.compareEncodingPreferences(MediaFormat enc1,
MediaFormat enc2)
Compares the two formats for order.
|
void |
EncodingConfigurationConfigImpl.setPriority(MediaFormat encoding,
int priority)
Sets the preference associated with encoding to
priority, and stores the appropriate property in the
configuration service.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
MediaDeviceImpl.getFormat()
Gets the MediaFormat in which this MediaDevice captures
media.
|
MediaFormat |
AudioMixerMediaDevice.getFormat()
Gets the MediaFormat in which this
|
MediaFormat |
VideoTranslatorMediaDevice.getFormat()
Returns the MediaFormat that this device is currently set to use
when capturing data.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaFormat> |
MediaDeviceSession.getSupportedFormats()
Gets a list of the MediaFormats in which this instance is
capable of capturing media from its associated MediaDevice.
|
java.util.List<MediaFormat> |
AbstractMediaDevice.getSupportedFormats()
Gets a list of MediaFormats supported by this
MediaDevice.
|
java.util.List<MediaFormat> |
MediaDeviceImpl.getSupportedFormats(EncodingConfiguration encodingConfiguration)
Gets the list of MediaFormats supported by this
MediaDevice and enabled in encodingConfiguration.
|
java.util.List<MediaFormat> |
MediaDeviceImpl.getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
Gets the list of MediaFormats supported by this
MediaDevice.
|
java.util.List<MediaFormat> |
AudioMixerMediaDevice.getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
Gets the list of MediaFormats supported by this
MediaDevice.
|
java.util.List<MediaFormat> |
VideoTranslatorMediaDevice.getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice.
|
java.util.List<MediaFormat> |
MediaDeviceImpl.getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset,
EncodingConfiguration encodingConfiguration)
Gets the list of MediaFormats supported by this
MediaDevice and enabled in encodingConfiguration.
|
java.util.List<MediaFormat> |
AudioMixerMediaDevice.getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset,
EncodingConfiguration encodingConfiguration)
Gets the list of MediaFormats supported by this
MediaDevice and enabled in encodingConfiguration.
|
java.util.List<MediaFormat> |
VideoTranslatorMediaDevice.getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset,
EncodingConfiguration encodingConfiguration)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice and enabled in
encodingConfiguration..
|
Modifier and Type | Method and Description |
---|---|
void |
MediaDeviceSession.setFormat(MediaFormat format)
Sets the MediaFormat in which this MediaDeviceSession
outputs the media captured by its MediaDevice.
|
void |
VideoMediaDeviceSession.setFormat(MediaFormat format)
Sets the MediaFormat in which this MediaDeviceSession
outputs the media captured by its MediaDevice.
|
Modifier and Type | Class and Description |
---|---|
class |
AudioMediaFormatImpl
Implements AudioMediaFormat for the JMF AudioFormat.
|
class |
MediaFormatImpl<T extends javax.media.Format>
Implements MediaFormat for the JMF Format.
|
class |
VideoMediaFormatImpl
Implements VideoMediaFormat for the JMF VideoFormat.
|
Modifier and Type | Method and Description |
---|---|
static MediaFormat |
MediaFormatImpl.createInstance(javax.media.Format format)
Creates a new MediaFormat instance for a specific JMF
Format.
|
MediaFormat |
MediaFormatFactoryImpl.createMediaFormat(byte rtpPayloadType)
Creates a MediaFormat for the specified RTP payload type with
default clock rate and set of format parameters.
|
MediaFormat |
MediaFormatFactoryImpl.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> advancedParams)
Creates a MediaFormat either for the specified
rtpPayloadType or for the specified encoding,
clockRate, channels and set of format parameters.
|
MediaFormat |
MediaFormatFactoryImpl.createMediaFormat(java.lang.String encoding)
Creates a MediaFormat for the specified encoding with
default clock rate and set of format parameters.
|
MediaFormat |
MediaFormatFactoryImpl.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 |
MediaFormatFactoryImpl.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 |
MediaFormatFactoryImpl.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> advancedParams)
Creates a MediaFormat for the specified encoding,
clockRate, channels and set of format parameters.
|
MediaFormat |
MediaFormatFactoryImpl.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> advancedParams)
Creates a MediaFormat for the specified encoding,
clockRate and set of format parameters.
|
MediaFormat |
MediaFormatFactoryImpl.createUnknownMediaFormat(MediaType type)
Creates an unknown MediaFormat.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MediaFormatImpl.matches(MediaFormat format)
Determines whether this MediaFormat matches properties of a
specific MediaFormat, such as mediaType,
encoding, clockRate and channels for
MediaFormats with mediaType equal to
MediaType.AUDIO . |
Modifier and Type | Method and Description |
---|---|
static MediaDevice |
RtpdumpMediaDevice.createRtpdumpVideoMediaDevice(java.lang.String filePath,
java.lang.String rtpEncodingConstant,
MediaFormat format)
Create a new video MediaDevice instance which will read
the rtpdump file located at filePath, and which will have the
encoding format encodingConstant.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
MediaStream.getFormat()
Returns the MediaFormat that this stream is currently
transmitting in.
|
MediaFormat |
MediaStream.getFormat(byte payloadType)
Returns the MediaFormat that is associated to the payload type
passed in as a parameter.
|
MediaFormat |
AbstractMediaStream.getFormat(byte pt)
Returns the MediaFormat that is associated to the payload type
passed in as a parameter.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<MediaFormat,java.lang.Byte> |
MediaService.getDynamicPayloadTypePreferences()
Returns a
Map that binds indicates whatever preferences the
media service implementation may have for the RTP payload type numbers
that get dynamically assigned to MediaFormat s with no static
payload type. |
java.util.Map<java.lang.Byte,MediaFormat> |
MediaStream.getDynamicRTPPayloadTypes()
Gets the existing associations in this MediaStream of RTP
payload types to MediaFormats.
|
Modifier and Type | Method and Description |
---|---|
void |
MediaStream.addDynamicRTPPayloadType(byte rtpPayloadType,
MediaFormat format)
Adds a new association in this MediaStream of the specified RTP
payload type with the specified MediaFormat in order to allow it
to report rtpPayloadType in RTP flows sending and receiving
media in format.
|
protected void |
AbstractMediaStream.handleAttributes(MediaFormat format,
java.util.Map<java.lang.String,java.lang.String> attrs)
Handles attributes contained in MediaFormat.
|
void |
MediaStream.setFormat(MediaFormat format)
Sets the MediaFormat that this MediaStream should
transmit in.
|
Modifier and Type | Method and Description |
---|---|
abstract MediaFormat[] |
EncodingConfiguration.getAllEncodings(MediaType type)
Returns all the available encodings for a specific MediaType.
|
MediaFormat[] |
EncodingConfiguration.getEnabledEncodings(MediaType type)
Returns the supported MediaFormats i.e.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
EncodingConfiguration.compareEncodingPreferences(MediaFormat enc1,
MediaFormat enc2)
Compares the two formats for order.
|
protected java.lang.String |
EncodingConfiguration.getEncodingPreferenceKey(MediaFormat encoding)
Gets the key in
EncodingConfiguration.encodingPreferences which is associated with the
priority of a specific MediaFormat. |
int |
EncodingConfiguration.getPriority(MediaFormat encoding)
Get the priority for a MediaFormat.
|
void |
EncodingConfiguration.setPriority(MediaFormat encoding,
int priority)
Sets priority as the preference associated with
encoding.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
MediaDevice.getFormat()
Returns the MediaFormat that this device is currently set to use
when capturing data.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaFormat> |
MediaDevice.getSupportedFormats()
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice.
|
java.util.List<MediaFormat> |
MediaDevice.getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice.
|
java.util.List<MediaFormat> |
MediaDevice.getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset,
EncodingConfiguration encodingConfiguration)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice and enabled in
encodingConfiguration.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AudioMediaFormat
The interface represents an audio format.
|
interface |
VideoMediaFormat
The interface represents a video format.
|
Modifier and Type | Method and Description |
---|---|
MediaFormat |
MediaFormatFactory.createMediaFormat(byte rtpPayloadType)
Creates a MediaFormat for the specified RTP payload type with
default clock rate and set of format parameters.
|
MediaFormat |
MediaFormatFactory.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 |
MediaFormatFactory.createMediaFormat(java.lang.String encoding)
Creates a MediaFormat for the specified encoding with
default clock rate and set of format parameters.
|
MediaFormat |
MediaFormatFactory.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 |
MediaFormatFactory.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 |
MediaFormatFactory.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 |
MediaFormatFactory.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 |
MediaFormatFactory.createUnknownMediaFormat(MediaType type)
Creates an unknown MediaFormat.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MediaFormat.matches(MediaFormat format)
Determines whether this MediaFormat matches properties of a
specific MediaFormat, such as mediaType,
encoding, clockRate and channels for
MediaFormats with mediaType equal to
MediaType.AUDIO . |
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.