|
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
public class CaptureDeviceDelegatePushBufferDataSource
Represents a PushBufferDataSource which is also a CaptureDevice through delegation to a specific CaptureDevice.
| Field Summary | |
|---|---|
protected javax.media.protocol.CaptureDevice |
captureDevice
The CaptureDevice this instance delegates to in order to implement its CaptureDevice functionality. |
protected static javax.media.protocol.PushBufferStream[] |
EMPTY_STREAMS
The constant which represents an empty array with PushBufferStream element type. |
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
CaptureDeviceDelegatePushBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
Initializes a new CaptureDeviceDelegatePushBufferDataSource instance which delegates to a specific CaptureDevice in order to implement its CaptureDevice functionality. |
|
| Method Summary | |
|---|---|
void |
connect()
Implements CaptureDevice.connect(). |
void |
disconnect()
Implements CaptureDevice.disconnect(). |
javax.media.CaptureDeviceInfo |
getCaptureDeviceInfo()
Implements CaptureDevice.getCaptureDeviceInfo(). |
String |
getContentType()
Implements DataSource.getContentType(). |
Object |
getControl(String controlType)
Implements DataSource.getControl(String). |
Object[] |
getControls()
Implements DataSource.getControls(). |
javax.media.Time |
getDuration()
Implements DataSource.getDuration(). |
javax.media.control.FormatControl[] |
getFormatControls()
Implements CaptureDevice.getFormatControls(). |
javax.media.protocol.PushBufferStream[] |
getStreams()
Implements PushBufferDataSource.getStreams(). |
void |
start()
Implements CaptureDevice.start(). |
void |
stop()
Implements CaptureDevice.stop(). |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
getLocator, initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final javax.media.protocol.PushBufferStream[] EMPTY_STREAMS
protected final javax.media.protocol.CaptureDevice captureDevice
| Constructor Detail |
|---|
public CaptureDeviceDelegatePushBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
captureDevice - the CaptureDevice the new instance is to
delegate to in order to provide its CaptureDevice functionality| Method Detail |
|---|
public void connect()
throws IOException
CaptureDevice.connect(). Delegates to the wrapped
CaptureDevice if available; otherwise, does nothing.
connect in interface javax.media.protocol.CaptureDeviceconnect in class javax.media.protocol.DataSourceIOException - if the wrapped CaptureDevice throws such an
exceptionpublic void disconnect()
CaptureDevice.disconnect(). Delegates to the wrapped
CaptureDevice if available; otherwise, does nothing.
disconnect in interface javax.media.protocol.CaptureDevicedisconnect in class javax.media.protocol.DataSourcepublic javax.media.CaptureDeviceInfo getCaptureDeviceInfo()
CaptureDevice.getCaptureDeviceInfo(). Delegates to the
wrapped CaptureDevice if available; otherwise, returns
null.
getCaptureDeviceInfo in interface javax.media.protocol.CaptureDevicepublic String getContentType()
DataSource.getContentType(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns ContentDescriptor.CONTENT_UNKNOWN.
getContentType in class javax.media.protocol.DataSourcepublic Object getControl(String controlType)
DataSource.getControl(String). Delegates to the
wrapped CaptureDevice if it implements DataSource;
otherwise, returns null.
getControl in interface javax.media.ControlsgetControl in class javax.media.protocol.DataSourcecontrolType - a String value which names the type of the
control to be retrieved
public Object[] getControls()
DataSource.getControls(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns an empty array with Object element type.
getControls in interface javax.media.ControlsgetControls in class javax.media.protocol.DataSourcepublic javax.media.Time getDuration()
DataSource.getDuration(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns Duration.DURATION_UNKNOWN.
getDuration in interface javax.media.DurationgetDuration in class javax.media.protocol.DataSourcepublic javax.media.control.FormatControl[] getFormatControls()
CaptureDevice.getFormatControls(). Delegates to the
wrapped CaptureDevice if available; otherwise, returns an empty
array with FormatControl element type.
getFormatControls in interface javax.media.protocol.CaptureDevicepublic javax.media.protocol.PushBufferStream[] getStreams()
PushBufferDataSource.getStreams(). Delegates to the
wrapped CaptureDevice if it implements
PushBufferDataSource; otherwise, returns an empty array with
PushBufferStream element type.
getStreams in class javax.media.protocol.PushBufferDataSource
public void start()
throws IOException
CaptureDevice.start(). Delegates to the wrapped
CaptureDevice if available; otherwise, does nothing.
start in interface javax.media.protocol.CaptureDevicestart in class javax.media.protocol.DataSourceIOException - if the wrapped CaptureDevice throws such an
exception
public void stop()
throws IOException
CaptureDevice.stop(). Delegates to the wrapped
CaptureDevice if available; otherwise, does nothing.
stop in interface javax.media.protocol.CaptureDevicestop in class javax.media.protocol.DataSourceIOException - if the wrapped CaptureDevice 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 | |||||||||