Class DataSource
- java.lang.Object
-
- javax.media.protocol.DataSource
-
- javax.media.protocol.PullBufferDataSource
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.AbstractPullBufferCaptureDevice
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.AbstractVideoPullBufferCaptureDevice
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.imgstreaming.DataSource
-
- All Implemented Interfaces:
javax.media.Controls,javax.media.Duration,javax.media.protocol.CaptureDevice,javax.media.protocol.Controls
public class DataSource extends AbstractVideoPullBufferCaptureDevice
Implements CaptureDevice and DataSource for the purposes of image and desktop streaming.- Author:
- Sebastien Vincent, Lyubomir Marinov, Damian Minkov
-
-
Constructor Summary
Constructors Constructor Description DataSource()Initializes a new DataSource instance.DataSource(javax.media.MediaLocator locator)Initializes a new DataSource instance from a specific MediaLocator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ImageStreamcreateStream(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.ObjectgetControl(String controlType)Gets the control of the specified type available for this instance.voidsetOrigin(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.-
Methods inherited from class org.jitsi.impl.neomedia.jmfext.media.protocol.AbstractVideoPullBufferCaptureDevice
createFrameRateControl
-
Methods inherited from class org.jitsi.impl.neomedia.jmfext.media.protocol.AbstractPullBufferCaptureDevice
connect, disconnect, doConnect, doDisconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, getSupportedFormats, setCaptureDeviceInfo, setFormat, start, stop, streams
-
-
-
-
Method Detail
-
createStream
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. The Format-related information of the new instance is to be abstracted by a specific FormatControl.- Specified by:
createStreamin classAbstractPullBufferCaptureDevice- Parameters:
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 instance- Returns:
- a new PullBufferStream which is to be at the specified streamIndex in the list of streams of this PullBufferDataSource and which has its Format-related information abstracted by the specified formatControl
- See Also:
AbstractPullBufferCaptureDevice.createStream(int, FormatControl)
-
getControl
public Object getControl(String controlType)
Gets the control of the specified type available for this instance.- Specified by:
getControlin interfacejavax.media.Controls- Overrides:
getControlin classAbstractPullBufferCaptureDevice- Parameters:
controlType- the type of the control available for this instance to be retrieved- Returns:
- an Object which represents the control of the specified type available for this instance if such a control is indeed available; otherwise, null
-
setOrigin
public 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.- Parameters:
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
-
-