public class AudioMediaDeviceImpl extends MediaDeviceImpl
Constructor and Description |
---|
AudioMediaDeviceImpl()
Initializes a new AudioMediaDeviceImpl instance which represents
a MediaDevice with MediaType AUDIO and a
MediaDirection which does not allow sending.
|
AudioMediaDeviceImpl(javax.media.CaptureDeviceInfo captureDeviceInfo)
Initializes a new AudioMediaDeviceImpl which is to provide an
implementation of MediaDevice with MediaType
AUDIO to a CaptureDevice with a specific
CaptureDeviceInfo.
|
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 javax.media.protocol.CaptureDevice |
createCaptureDevice()
Creates the JMF CaptureDevice this instance represents and
provides an implementation of MediaDevice for.
|
protected javax.media.Renderer |
createRenderer()
Initializes a new Renderer instance which is to play back media
on this MediaDevice.
|
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.
|
protected javax.media.protocol.CaptureDevice |
superCreateCaptureDevice()
Invokes the super (with respect to the AudioMediaDeviceImpl
class) implementation of
MediaDeviceImpl.createCaptureDevice() . |
createOutputDataSource, createTracingCaptureDevice, getCaptureDeviceInfo, getCaptureDeviceInfoLocatorProtocol, getDirection, getFormat, getMediaType, getSupportedFormats, getSupportedFormats, getSupportedFormats, toString
createPlayer, createSession, getSupportedFormats
public AudioMediaDeviceImpl()
public AudioMediaDeviceImpl(javax.media.CaptureDeviceInfo captureDeviceInfo)
captureDeviceInfo
- the CaptureDeviceInfo of the
CaptureDevice to which the new instance is to provide an
implementation of MediaDevicepublic void connect(javax.media.protocol.DataSource captureDevice) throws java.io.IOException
connect
in class AbstractMediaDevice
captureDevice
- the CaptureDevice to be connected tojava.io.IOException
- if anything wrong happens while connecting to the
specified captureDeviceAbstractMediaDevice.connect(DataSource)
protected javax.media.protocol.CaptureDevice createCaptureDevice()
createCaptureDevice
in class MediaDeviceImpl
protected javax.media.Renderer createRenderer()
createRenderer
in class AbstractMediaDevice
public java.util.List<RTPExtension> getSupportedExtensions()
getSupportedExtensions
in interface MediaDevice
getSupportedExtensions
in class AbstractMediaDevice
protected javax.media.protocol.CaptureDevice superCreateCaptureDevice()
MediaDeviceImpl.createCaptureDevice()
.
Allows this instance to customize the very CaptureDevice which
is to be possibly further wrapped by this instance.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.