public class PushBufferDataSourceAdapter extends PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>
dataSource
captureDevice, 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, getLocator
getCaptureDeviceInfo, getFormatControls
public 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.CaptureDevice
disconnect
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 java.io.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.CaptureDevice
start
in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>
java.io.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 java.io.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.CaptureDevice
stop
in class PushBufferDataSourceDelegate<javax.media.protocol.PullBufferDataSource>
java.io.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 instance
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.