public class VideoTranslatorMediaDevice extends AbstractMediaDevice implements MediaDeviceWrapper, VideoListener
Constructor and Description |
---|
VideoTranslatorMediaDevice(MediaDeviceImpl device)
Initializes a new VideoTranslatorMediaDevice which enables a
specific MediaDevice to be used in video conferencing
implemented with an RTP translator.
|
Modifier and Type | Method and Description |
---|---|
protected javax.media.protocol.DataSource |
createOutputDataSource()
Creates a DataSource instance for this MediaDevice
which gives access to the captured media.
|
MediaDeviceSession |
createSession()
Creates a new MediaDeviceSession instance which is to represent
the use of this MediaDevice by a MediaStream.
|
MediaDirection |
getDirection()
Returns the MediaDirection supported by this device.
|
MediaFormat |
getFormat()
Returns the MediaFormat that this device is currently set to use
when capturing data.
|
MediaType |
getMediaType()
Returns the MediaType that this device supports.
|
java.util.List<MediaFormat> |
getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice.
|
java.util.List<MediaFormat> |
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..
|
MediaDevice |
getWrappedDevice()
Gets the actual MediaDevice which this MediaDevice is
effectively built on top of and forwarding to.
|
void |
videoAdded(VideoEvent event)
Notifies that a visual Component representing video has been
added to the provider this listener has been added to.
|
void |
videoRemoved(VideoEvent event)
Notifies that a visual Component representing video has been
removed from the provider this listener has been added to.
|
void |
videoUpdate(VideoEvent event)
Notifies about an update to a visual Component representing
video.
|
connect, createPlayer, createRenderer, getSupportedExtensions, getSupportedFormats
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedExtensions, getSupportedFormats
public VideoTranslatorMediaDevice(MediaDeviceImpl device)
device
- the MediaDevice which the new instance is to
enable to be used in video conferencing implemented with an RTP
translatorprotected javax.media.protocol.DataSource createOutputDataSource()
createOutputDataSource
in class AbstractMediaDevice
AbstractMediaDevice.createOutputDataSource()
public MediaDeviceSession createSession()
createSession
in class AbstractMediaDevice
AbstractMediaDevice.createSession()
public MediaDirection getDirection()
getDirection
in interface MediaDevice
MediaDevice.getDirection()
public MediaFormat getFormat()
getFormat
in interface MediaDevice
MediaDevice.getFormat()
public MediaType getMediaType()
getMediaType
in interface MediaDevice
MediaDevice.getMediaType()
public java.util.List<MediaFormat> getSupportedFormats(QualityPreset localPreset, QualityPreset remotePreset)
getSupportedFormats
in interface MediaDevice
localPreset
- the preset used to set the send format parameters,
used for video and settingsremotePreset
- the preset used to set the receive format parameters,
used for video and settingsMediaDevice.getSupportedFormats(QualityPreset, QualityPreset)
public java.util.List<MediaFormat> getSupportedFormats(QualityPreset localPreset, QualityPreset remotePreset, EncodingConfiguration encodingConfiguration)
getSupportedFormats
in interface MediaDevice
localPreset
- the preset used to set the send format parameters,
used for video and settingsremotePreset
- the preset used to set the receive format parameters,
used for video and settingsencodingConfiguration
- the EncodingConfiguration instance
to useMediaDevice.getSupportedFormats(QualityPreset, QualityPreset,
EncodingConfiguration)
public MediaDevice getWrappedDevice()
getWrappedDevice
in interface MediaDeviceWrapper
MediaDeviceWrapper.getWrappedDevice()
public void videoAdded(VideoEvent event)
videoAdded
in interface VideoListener
event
- a VideoEvent describing the added visual
Component representing video and the provider it was added intopublic void videoRemoved(VideoEvent event)
videoRemoved
in interface VideoListener
event
- a VideoEvent describing the removed visual
Component representing video and the provider it was removed
frompublic void videoUpdate(VideoEvent event)
videoUpdate
in interface VideoListener
event
- a VideoEvent describing the visual
Component related to the update and the details of the specific
update
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.