public class AudioSilenceMediaDevice extends AudioMediaDeviceImpl
Constructor and Description |
---|
AudioSilenceMediaDevice()
Initializes a new
AudioSilenceMediaDevice instance. |
AudioSilenceMediaDevice(boolean clockOnly)
Initializes a new
AudioSilenceMediaDevice instance. |
Modifier and Type | Method and Description |
---|---|
protected javax.media.protocol.CaptureDevice |
createCaptureDevice()
Creates the JMF CaptureDevice this instance represents and
provides an implementation of MediaDevice for.
|
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.
|
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.
|
connect, createRenderer, getSupportedExtensions, superCreateCaptureDevice
createOutputDataSource, createTracingCaptureDevice, getCaptureDeviceInfo, getCaptureDeviceInfoLocatorProtocol, getFormat, getMediaType, getSupportedFormats, getSupportedFormats, getSupportedFormats, toString
getSupportedFormats
public AudioSilenceMediaDevice()
AudioSilenceMediaDevice
instance.public AudioSilenceMediaDevice(boolean clockOnly)
AudioSilenceMediaDevice
instance.clockOnly
- the value to set to clockOnly
.protected javax.media.protocol.CaptureDevice createCaptureDevice()
createCaptureDevice
in class AudioMediaDeviceImpl
protected javax.media.Processor createPlayer(javax.media.protocol.DataSource dataSource)
createPlayer
in class AbstractMediaDevice
dataSource
- the DataSource which is to be played back by
the new Processor instancepublic MediaDeviceSession createSession()
createSession
in class AbstractMediaDevice
public MediaDirection getDirection()
MediaDirection.SENDRECV
because this instance stands for a relay
and because the super bases the MediaDirection on the
CaptureDeviceInfo which this instance does not have.getDirection
in interface MediaDevice
getDirection
in class MediaDeviceImpl
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()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.