|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.device.AbstractMediaDevice
net.java.sip.communicator.impl.neomedia.device.MediaDeviceImpl
public class MediaDeviceImpl
Implements MediaDevice for the JMF CaptureDevice.
| Constructor Summary | |
|---|---|
MediaDeviceImpl(javax.media.CaptureDeviceInfo captureDeviceInfo,
MediaType mediaType)
Initializes a new MediaDeviceImpl instance which is to provide an implementation of MediaDevice for a CaptureDevice with a specific CaptureDeviceInfo and which is of a specific MediaType. |
|
MediaDeviceImpl(MediaType mediaType)
Initializes a new MediaDeviceImpl instance with a specific MediaType and with MediaDirection which does not allow sending. |
|
| Method Summary | |
|---|---|
(package private) javax.media.protocol.CaptureDevice |
createCaptureDevice()
Creates the JMF CaptureDevice this instance represents and provides an implementation of MediaDevice for. |
(package private) javax.media.protocol.DataSource |
createOutputDataSource()
Creates a DataSource instance for this MediaDevice which gives access to the captured media. |
static javax.media.protocol.CaptureDevice |
createTracingCaptureDevice(javax.media.protocol.CaptureDevice captureDevice,
Logger logger)
Creates a new CaptureDevice which traces calls to a specific CaptureDevice for debugging purposes. |
javax.media.CaptureDeviceInfo |
getCaptureDeviceInfo()
Gets the CaptureDeviceInfo of the JMF CaptureDevice represented by this instance. |
MediaDirection |
getDirection()
Returns the MediaDirection supported by this device. |
MediaFormat |
getFormat()
Gets the MediaFormat in which this MediaDevice captures media. |
MediaType |
getMediaType()
Gets the MediaType that this device supports. |
List<MediaFormat> |
getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
Gets the list of MediaFormats supported by this MediaDevice. |
String |
toString()
Gets a human-readable String representation of this instance. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.device.AbstractMediaDevice |
|---|
close, connect, createSession, getSession, getSupportedExtensions, getSupportedFormats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MediaDeviceImpl(MediaType mediaType)
mediaType - the MediaType of the new instance
public MediaDeviceImpl(javax.media.CaptureDeviceInfo captureDeviceInfo,
MediaType mediaType)
captureDeviceInfo - the CaptureDeviceInfo of the JMF
CaptureDevice the new instance is to provide an implementation
of MediaDevice formediaType - the MediaType of the new instance| Method Detail |
|---|
javax.media.protocol.CaptureDevice createCaptureDevice()
javax.media.protocol.DataSource createOutputDataSource()
createOutputDataSource in class AbstractMediaDeviceAbstractMediaDevice.createOutputDataSource()
public static javax.media.protocol.CaptureDevice createTracingCaptureDevice(javax.media.protocol.CaptureDevice captureDevice,
Logger logger)
captureDevice - the CaptureDevice which is to have its
calls traced for debugging outputlogger - the Logger to be used for logging the trace
messages
public javax.media.CaptureDeviceInfo getCaptureDeviceInfo()
public MediaDirection getDirection()
MediaDirection.SENDONLY if this is a read-only device,
MediaDirection.RECVONLY if this is a write-only device or
MediaDirection.SENDRECV if this MediaDevice can both
capture and render mediaMediaDevice.getDirection()public MediaFormat getFormat()
MediaDevice.getFormat()public MediaType getMediaType()
MediaType.AUDIO if this is an audio device or
MediaType.VIDEO if this is a video deviceMediaDevice.getMediaType()
public List<MediaFormat> getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
sendPreset - the preset used to set some of the format parameters,
used for video and settings.receivePreset - the preset used to set the receive format
parameters, used for video and settings.
MediaDevice.getSupportedFormats()public 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 | |||||||||