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.
|
org.jitsi.utils.MediaType |
getMediaType()
Returns the MediaType that this device supports.
|
List<MediaFormat> |
getSupportedFormats(QualityPreset localPreset,
QualityPreset remotePreset)
Returns a list of MediaFormat instances representing the media
formats supported by this MediaDevice.
|
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, getSupportedFormatsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedExtensions, getSupportedFormatspublic 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 AbstractMediaDeviceAbstractMediaDevice.createOutputDataSource()public MediaDeviceSession createSession()
createSession in class AbstractMediaDeviceAbstractMediaDevice.createSession()public MediaDirection getDirection()
getDirection in interface MediaDeviceMediaDevice.getDirection()public MediaFormat getFormat()
getFormat in interface MediaDeviceMediaDevice.getFormat()public org.jitsi.utils.MediaType getMediaType()
getMediaType in interface MediaDeviceMediaDevice.getMediaType()public List<MediaFormat> getSupportedFormats(QualityPreset localPreset, QualityPreset remotePreset)
getSupportedFormats in interface MediaDevicelocalPreset - 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 List<MediaFormat> getSupportedFormats(QualityPreset localPreset, QualityPreset remotePreset, EncodingConfiguration encodingConfiguration)
getSupportedFormats in interface MediaDevicelocalPreset - 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 MediaDeviceWrapperMediaDeviceWrapper.getWrappedDevice()public void videoAdded(VideoEvent event)
videoAdded in interface VideoListenerevent - a VideoEvent describing the added visual
Component representing video and the provider it was added intopublic void videoRemoved(VideoEvent event)
videoRemoved in interface VideoListenerevent - a VideoEvent describing the removed visual
Component representing video and the provider it was removed
frompublic void videoUpdate(VideoEvent event)
videoUpdate in interface VideoListenerevent - a VideoEvent describing the visual
Component related to the update and the details of the specific
updateCopyright © 2021 jitsi.org. All rights reserved.