|
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<T>
T - the very type of DataSource to be wrapped in a
PushBufferDataSourceDelegatepublic abstract class PushBufferDataSourceDelegate<T extends javax.media.protocol.DataSource>
Implements most of PushBufferDataSource for a particular
DataSource and requires extenders to only implement
PushBufferDataSource.getStreams(). Intended to allow easier
overriding of the streams returned by a DataSource.
| Field Summary | |
|---|---|
protected T |
dataSource
The wrapped DataSource this instance delegates to. |
| 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 | |
|---|---|
PushBufferDataSourceDelegate(T dataSource)
Initializes a new PushBufferDataSourceDelegate which is to delegate to a specific DataSource. |
|
| Method Summary | |
|---|---|
void |
connect()
Implements DataSource.connect(). |
void |
disconnect()
Implements DataSource.disconnect(). |
String |
getContentType()
Implements DataSource.getContentType(). |
Object |
getControl(String controlType)
Implements DataSource.getControl(String). |
Object[] |
getControls()
Implements DataSource.getControls(). |
T |
getDataSource()
Gets the DataSource wrapped by this instance. |
javax.media.Time |
getDuration()
Implements DataSource.getDuration(). |
javax.media.MediaLocator |
getLocator()
Implements DataSource.getLocator(). |
abstract javax.media.protocol.PushBufferStream[] |
getStreams()
Gets the PushBufferStreams through which this PushBufferDataSource gives access to its media data. |
void |
start()
Implements DataSource.start(). |
void |
stop()
Implements DataSource.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 |
| Field Detail |
|---|
protected final T extends javax.media.protocol.DataSource dataSource
| Constructor Detail |
|---|
public PushBufferDataSourceDelegate(T dataSource)
dataSource - the DataSource the new instance is to delegate
to| Method Detail |
|---|
public void connect()
throws IOException
DataSource.connect(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.connect() because the
wrapped DataSource may not be a CaptureDevice yet it
still needs to be connected.
connect in interface javax.media.protocol.CaptureDeviceconnect in class CaptureDeviceDelegatePushBufferDataSourceIOException - if the wrapped DataSource throws such an
exceptionpublic void disconnect()
DataSource.disconnect(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.disconnect() because
the wrapped DataSource may not be a CaptureDevice yet
it still needs to be disconnected.
disconnect in interface javax.media.protocol.CaptureDevicedisconnect in class CaptureDeviceDelegatePushBufferDataSourcepublic String getContentType()
DataSource.getContentType(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.getContentType()
because the wrapped DataSource may not be a
CaptureDevice yet it still needs to report the content type.
getContentType in class CaptureDeviceDelegatePushBufferDataSourcepublic javax.media.MediaLocator getLocator()
DataSource.getLocator(). Delegates to the wrapped
DataSource.
getLocator in class javax.media.protocol.DataSourcepublic Object getControl(String controlType)
DataSource.getControl(String). Delegates to the
wrapped DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.getControl(String)
because the wrapped DataSource may not be a
CaptureDevice yet it still needs to give access to the control.
getControl in interface javax.media.ControlsgetControl in class CaptureDeviceDelegatePushBufferDataSourcecontrolType - a String value which names the type of the
control to be retrieved
public Object[] getControls()
DataSource.getControls(). Delegates to the wrapped
PushBufferDataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.getControls() because
the wrapped DataSource may not be a CaptureDevice yet
it still needs to give access to the controls.
getControls in interface javax.media.ControlsgetControls in class CaptureDeviceDelegatePushBufferDataSourcepublic T getDataSource()
public javax.media.Time getDuration()
DataSource.getDuration(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.getDuration() because
the wrapped DataSource may not be a CaptureDevice yet
it still needs to report the duration.
getDuration in interface javax.media.DurationgetDuration in class CaptureDeviceDelegatePushBufferDataSourcepublic abstract javax.media.protocol.PushBufferStream[] getStreams()
getStreams in class CaptureDeviceDelegatePushBufferDataSource
public void start()
throws IOException
DataSource.start(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.start() because the
wrapped DataSource may not be a CaptureDevice yet it
still needs to be started.
start in interface javax.media.protocol.CaptureDevicestart in class CaptureDeviceDelegatePushBufferDataSourceIOException - if the wrapped DataSource throws such an
exception
public void stop()
throws IOException
DataSource.stop(). Delegates to the wrapped
DataSource. Overrides
CaptureDeviceDelegatePushBufferDataSource.stop() because the
wrapped DataSource may not be a CaptureDevice yet it
still needs to be stopped.
stop in interface javax.media.protocol.CaptureDevicestop in class CaptureDeviceDelegatePushBufferDataSourceIOException - if the wrapped DataSource throws such an
exception
|
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 | |||||||||