public abstract class AbstractMediaDevice extends java.lang.Object implements MediaDevice
Constructor and Description |
---|
AbstractMediaDevice() |
Modifier and Type | Method and Description |
---|---|
void |
connect(javax.media.protocol.DataSource captureDevice)
Connects to a specific CaptureDevice given in the form of a
DataSource.
|
protected abstract javax.media.protocol.DataSource |
createOutputDataSource()
Creates a DataSource instance for this MediaDevice
which gives access to the captured media.
|
protected javax.media.Processor |
createPlayer(javax.media.protocol.DataSource dataSource)
Initializes a new Processor instance which is to be used to play
back media on this MediaDevice.
|
protected javax.media.Renderer |
createRenderer()
Initializes a new Renderer instance which is to play back media
on this MediaDevice.
|
MediaDeviceSession |
createSession()
Creates a new MediaDeviceSession instance which is to represent
the use of this MediaDevice by a MediaStream.
|
java.util.List<RTPExtension> |
getSupportedExtensions()
Returns a List containing (at the time of writing) a single
extension descriptor indicating RECVONLY support for
mixer-to-client audio levels.
|
java.util.List<MediaFormat> |
getSupportedFormats()
Gets a list of MediaFormats supported by this
MediaDevice.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirection, getFormat, getMediaType, getSupportedFormats, getSupportedFormats
public void connect(javax.media.protocol.DataSource captureDevice) throws java.io.IOException
captureDevice
- the CaptureDevice to be connected tojava.io.IOException
- if anything wrong happens while connecting to the
specified captureDeviceprotected abstract javax.media.protocol.DataSource createOutputDataSource()
protected javax.media.Processor createPlayer(javax.media.protocol.DataSource dataSource) throws java.lang.Exception
dataSource
- the DataSource which is to be played back by
the new Processor instancejava.lang.Exception
- if an exception is thrown by
DataSource.connect()
,
Manager.createProcessor(DataSource)
, or
DataSource.disconnect()
protected javax.media.Renderer createRenderer()
public MediaDeviceSession createSession()
public java.util.List<RTPExtension> getSupportedExtensions()
getSupportedExtensions
in interface MediaDevice
public java.util.List<MediaFormat> getSupportedFormats()
getSupportedFormats
in interface MediaDevice
MediaDevice.getSupportedFormats()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.