public class CaptureDeviceDelegatePushBufferDataSource
extends javax.media.protocol.PushBufferDataSource
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.PushBufferStream[] |
EMPTY_STREAMS
The constant which represents an empty array with
PushBufferStream element type.
|
| Constructor and Description |
|---|
CaptureDeviceDelegatePushBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
Initializes a new CaptureDeviceDelegatePushBufferDataSource
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.PushBufferStream[] |
getStreams()
Implements
PushBufferDataSource.getStreams(). |
void |
start()
Implements
CaptureDevice.start(). |
void |
stop()
Implements
CaptureDevice.stop(). |
protected static final javax.media.protocol.PushBufferStream[] EMPTY_STREAMS
protected final javax.media.protocol.CaptureDevice captureDevice
public CaptureDeviceDelegatePushBufferDataSource(javax.media.protocol.CaptureDevice captureDevice)
captureDevice - the CaptureDevice the new instance is to
delegate to in order to provide its CaptureDevice functionalitypublic 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)
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.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.PushBufferDataSourcepublic 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.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
exceptionCopyright © 2021 jitsi.org. All rights reserved.