public class DataSource extends AbstractVideoPullBufferCaptureDevice
Constructor and Description |
---|
DataSource()
Initializes a new DataSource instance.
|
DataSource(javax.media.MediaLocator locator)
Initializes a new DataSource instance from a specific
MediaLocator.
|
Modifier and Type | Method and Description |
---|---|
protected ImageStream |
createStream(int streamIndex,
javax.media.control.FormatControl formatControl)
Creates a new PullBufferStream which is to be at a specific
zero-based index in the list of streams of this
PullBufferDataSource.
|
java.lang.Object |
getControl(java.lang.String controlType)
Gets the control of the specified type available for this instance.
|
void |
setOrigin(int streamIndex,
int displayIndex,
int x,
int y)
Set the display index and the origin of the ImageStream
associated with a specific index in this DataSource.
|
createFrameRateControl
connect, disconnect, doConnect, doDisconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, getSupportedFormats, setCaptureDeviceInfo, setFormat, start, stop, streams
public DataSource()
public DataSource(javax.media.MediaLocator locator)
locator
- the MediaLocator to initialize the new instance
fromprotected ImageStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
createStream
in class AbstractPullBufferCaptureDevice
streamIndex
- the zero-based index of the PullBufferStream
in the list of streams of this PullBufferDataSourceformatControl
- the FormatControl which is to abstract the
Format-related information of the new instanceAbstractPullBufferCaptureDevice.createStream(int, FormatControl)
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface javax.media.Controls
getControl
in class AbstractPullBufferCaptureDevice
controlType
- the type of the control available for this instance to
be retrievedpublic void setOrigin(int streamIndex, int displayIndex, int x, int y)
streamIndex
- the index in this DataSource of the
ImageStream to set the display index and the origin ofdisplayIndex
- the display index to set on the specified
ImageStreamx
- the x coordinate of the origin to set on the specified
ImageStreamy
- the y coordinate of the origin to set on the specified
ImageStream
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.