|
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.PullBufferDataSource
net.java.sip.communicator.impl.neomedia.protocol.CaptureDeviceDelegatePullBufferDataSource
public class CaptureDeviceDelegatePullBufferDataSource
Represents a PullBufferDataSource 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.PullBufferStream[] |
EMPTY_STREAMS
The constant which represents an empty array with PullBufferStream element type. |
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
CaptureDeviceDelegatePullBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
Initializes a new CaptureDeviceDelegatePullBufferDataSource 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.PullBufferStream[] |
getStreams()
Implements PullBufferDataSource.getStreams(). |
void |
start()
Implements CaptureDevice.start(). |
void |
stop()
Implements CaptureDevice.start(). |
| 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 final javax.media.protocol.CaptureDevice captureDevice
protected static final javax.media.protocol.PullBufferStream[] EMPTY_STREAMS
| Constructor Detail |
|---|
public CaptureDeviceDelegatePullBufferDataSource(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 javax.media.protocol.PullBufferStream[] getStreams()
PullBufferDataSource.getStreams(). Delegates to the
wrapped CaptureDevice if it implements
PullBufferDataSource; otherwise, returns an empty array with
PullBufferStream element type.
getStreams in class javax.media.protocol.PullBufferDataSourcepublic String getContentType()
DataSource.getContentType(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns ContentDescriptor.CONTENT_UNKNOWN.
getContentType in class javax.media.protocol.DataSource
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.DataSource
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.start(). 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
exceptionpublic 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.CaptureDeviceInfo getCaptureDeviceInfo()
CaptureDevice.getCaptureDeviceInfo(). Delegates to the
wrapped CaptureDevice if available; otherwise, returns
null.
getCaptureDeviceInfo in interface javax.media.protocol.CaptureDevice
|
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 | |||||||||