public class CaptureDeviceDelegatePullBufferDataSource
extends javax.media.protocol.PullBufferDataSource
implements javax.media.protocol.CaptureDevice
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
CaptureDeviceDelegatePullBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
Initializes a new CaptureDeviceDelegatePullBufferDataSource
instance which delegates to a specific CaptureDevice in order to
implement its CaptureDevice functionality.
|
| Modifier and Type | Method and Description |
|---|---|
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
Controls.getControl(String). |
Object[] |
getControls()
Implements
Controls.getControls(). |
javax.media.Time |
getDuration()
Implements
Duration.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(). |
protected final javax.media.protocol.CaptureDevice captureDevice
protected static final javax.media.protocol.PullBufferStream[] EMPTY_STREAMS
public CaptureDeviceDelegatePullBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
captureDevice - the CaptureDevice the new instance is to
delegate to in order to provide its CaptureDevice functionalitypublic 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.DataSourcepublic 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 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
exceptionpublic 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)
Controls.getControl(String). Delegates to the
wrapped CaptureDevice if it implements DataSource;
otherwise, returns null.getControl in interface javax.media.ControlscontrolType - a String value which names the type of the
control to be retrievedpublic Object[] getControls()
Controls.getControls(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns an empty array with Object element type.getControls in interface javax.media.Controlspublic javax.media.Time getDuration()
Duration.getDuration(). Delegates to the wrapped
CaptureDevice if it implements DataSource; otherwise,
returns Duration.DURATION_UNKNOWN.getDuration in interface javax.media.Durationpublic 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.CaptureDeviceCopyright © 2022 jitsi.org. All rights reserved.