public class PushBufferDataSourceAdapter extends PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>
dataSourcecaptureDevice, EMPTY_STREAMS| Constructor and Description |
|---|
PushBufferDataSourceAdapter(javax.media.protocol.PullBufferDataSource dataSource)
Initializes a new PushBufferDataSourceAdapter which is to
implement PushBufferDataSource capabilities for a specific
PullBufferDataSource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Implements
DataSource.disconnect(). |
javax.media.protocol.PushBufferStream[] |
getStreams()
Implements
PushBufferDataSource.getStreams(). |
void |
start()
Implements
DataSource.start(). |
void |
stop()
Implements
DataSource.start(). |
connect, getContentType, getControl, getControls, getDataSource, getDuration, getLocatorgetCaptureDeviceInfo, getFormatControlspublic PushBufferDataSourceAdapter(javax.media.protocol.PullBufferDataSource dataSource)
dataSource - the PullBufferDataSource the new instance is
to implement PushBufferDataSource capabilities forpublic void disconnect()
DataSource.disconnect(). Disposes of the
PushBufferStreamAdapters which wrap the
PullBufferStreams of the PullBufferDataSource wrapped
by this instance.disconnect in interface javax.media.protocol.CaptureDevicedisconnect in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>public javax.media.protocol.PushBufferStream[] getStreams()
PushBufferDataSource.getStreams(). Gets the
PushBufferStreams through which this
PushBufferDataSource gives access to its media data.getStreams in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>public void start()
throws IOException
DataSource.start(). Starts the wrapped
PullBufferDataSource and the pushing from the
PushBufferStreamAdapters which wrap the
PullBufferStreams of the PullBufferDataSource wrapped
by this instance.start in interface javax.media.protocol.CaptureDevicestart in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>IOException - if anything wrong happens while starting the wrapped
PullBufferDataSource or the pushing from the
PushBufferStreamAdapters which wrap the
PullBufferStreams of the PullBufferDataSource wrapped
by this instancepublic void stop()
throws IOException
DataSource.start(). Stops the wrapped
PullBufferDataSource and the pushing from the
PushBufferStreamAdapters which wrap the
PullBufferStreams of the PullBufferDataSource wrapped
by this instance.stop in interface javax.media.protocol.CaptureDevicestop in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>IOException - if anything wrong happens while stopping the wrapped
PullBufferDataSource or the pushing from the
PushBufferStreamAdapters which wrap the
PullBufferStreams of the PullBufferDataSource wrapped
by this instanceCopyright © 2022 jitsi.org. All rights reserved.