|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.protocol.DataSource
javax.media.protocol.PushBufferDataSource
net.java.sip.communicator.impl.neomedia.protocol.CaptureDeviceDelegatePushBufferDataSource
net.java.sip.communicator.impl.neomedia.protocol.PushBufferDataSourceDelegate<javax.media.protocol.PushBufferDataSource>
net.java.sip.communicator.impl.neomedia.protocol.RewritablePushBufferDataSource
public class RewritablePushBufferDataSource
Implements a PushBufferDataSource wrapper which provides mute support for the wrapped instance.
Because the class wouldn't work for our use case without it, CaptureDevice is implemented and is being delegated to the wrapped DataSource (if it supports the interface in question).
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.protocol.PushBufferDataSourceDelegate |
|---|
dataSource |
| Fields inherited from class net.java.sip.communicator.impl.neomedia.protocol.CaptureDeviceDelegatePushBufferDataSource |
|---|
captureDevice, EMPTY_STREAMS |
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
RewritablePushBufferDataSource(javax.media.protocol.PushBufferDataSource dataSource)
Initializes a new RewritablePushBufferDataSource instance which is to provide mute support for a specific PushBufferDataSource. |
|
| Method Summary | |
|---|---|
void |
addDTMF(DTMFInbandTone tone)
Adds a new inband DTMF tone to send. |
javax.media.protocol.PushBufferStream[] |
getStreams()
Implements PushBufferDataSource.getStreams(). |
boolean |
isMute()
Determines whether this DataSource is mute. |
boolean |
isSendingDTMF()
Determines whether this DataSource sends a DTMF tone. |
static void |
mute(javax.media.Buffer buffer)
Replaces the media data contained in a specific Buffer with a compatible representation of silence. |
static void |
sendDTMF(javax.media.Buffer buffer,
DTMFInbandTone tone)
Replaces the media data contained in a specific Buffer with an inband DTMF tone signal. |
void |
setMute(boolean mute)
Sets the mute state of this DataSource. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.protocol.PushBufferDataSourceDelegate |
|---|
connect, disconnect, getContentType, getControl, getControls, getDataSource, getDuration, getLocator, start, stop |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.protocol.CaptureDeviceDelegatePushBufferDataSource |
|---|
getCaptureDeviceInfo, getFormatControls |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RewritablePushBufferDataSource(javax.media.protocol.PushBufferDataSource dataSource)
dataSource - the PushBufferDataSource the new instance is
to provide mute support for| Method Detail |
|---|
public javax.media.protocol.PushBufferStream[] getStreams()
PushBufferDataSource.getStreams(). Wraps the streams
of the wrapped PushBufferDataSource into
MutePushBufferStream instances in order to provide mute support
to them.
getStreams in class PushBufferDataSourceDelegate<javax.media.protocol.PushBufferDataSource>public boolean isMute()
isMute in interface MuteDataSourcepublic static void mute(javax.media.Buffer buffer)
buffer - the Buffer the data contained in which is to be
replaced with silencepublic void setMute(boolean mute)
setMute in interface MuteDataSourcemute - true to mute this DataSource; otherwise,
falsepublic void addDTMF(DTMFInbandTone tone)
addDTMF in interface InbandDTMFDataSourcetone - the DTMF tone to send.public boolean isSendingDTMF()
public static void sendDTMF(javax.media.Buffer buffer,
DTMFInbandTone tone)
buffer - the Buffer the data contained in which is to be
replaced with the DTMF tonetone - the DMFTTone to send via inband DTMF signal.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||