public class DataSource extends AbstractVideoPushBufferCaptureDevice
| 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 javax.media.control.FrameRateControl |
createFrameRateControl()
Overrides
AbstractVideoPushBufferCaptureDevice.createFrameRateControl() to
provide a FrameRateControl which gets and sets the frame rate of
the QTCaptureDecompressedVideoOutput represented by the
QuickTimeStream made available by this DataSource. |
protected QuickTimeStream |
createStream(int streamIndex,
javax.media.control.FormatControl formatControl)
Creates a new PushBufferStream which is to be at a specific
zero-based index in the list of streams of this
PushBufferDataSource.
|
protected void |
doConnect()
Opens a connection to the media source specified by the
MediaLocator of this DataSource.
|
protected void |
doDisconnect()
Closes the connection to the media source specified by the
MediaLocator of this DataSource.
|
protected void |
doStart()
Starts the transfer of media data from this DataSource.
|
protected void |
doStop()
Stops the transfer of media data from this DataSource.
|
protected javax.media.Format[] |
getSupportedFormats(int streamIndex)
Gets the Formats which are to be reported by a
FormatControl as supported formats for a
PushBufferStream at a specific zero-based index in the list of
streams of this PushBufferDataSource.
|
protected javax.media.Format |
setFormat(int streamIndex,
javax.media.Format oldValue,
javax.media.Format newValue)
Attempts to set the Format to be reported by the
FormatControl of a PushBufferStream at a specific
zero-based index in the list of streams of this
PushBufferDataSource.
|
void |
setLocator(javax.media.MediaLocator locator)
Sets the MediaLocator which specifies the media source of this
DataSource.
|
connect, disconnect, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, start, stop, streamspublic DataSource()
public DataSource(javax.media.MediaLocator locator)
locator - the MediaLocator to create the new instance fromprotected javax.media.control.FrameRateControl createFrameRateControl()
AbstractVideoPushBufferCaptureDevice.createFrameRateControl() to
provide a FrameRateControl which gets and sets the frame rate of
the QTCaptureDecompressedVideoOutput represented by the
QuickTimeStream made available by this DataSource.
Creates a new FrameRateControl instance which is to allow the
getting and setting of the frame rate of this
AbstractVideoPushBufferCaptureDevice.createFrameRateControl in class AbstractVideoPushBufferCaptureDeviceAbstractVideoPushBufferCaptureDevice.createFrameRateControl()protected QuickTimeStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
createStream in class AbstractPushBufferCaptureDevicestreamIndex - the zero-based index of the PushBufferStream
in the list of streams of this PushBufferDataSourceformatControl - the FormatControl which is to abstract the
Format-related information of the new instanceAbstractPushBufferCaptureDevice.createStream(int, FormatControl)protected void doConnect()
throws IOException
doConnect in class AbstractPushBufferCaptureDeviceIOException - if anything goes wrong while opening the connection
to the media source specified by the MediaLocator of this
DataSourceAbstractPushBufferCaptureDevice.doConnect()protected void doDisconnect()
doDisconnect in class AbstractPushBufferCaptureDeviceAbstractPushBufferCaptureDevice.doDisconnect()protected void doStart()
throws IOException
doStart in class AbstractPushBufferCaptureDeviceIOException - if anything goes wrong while starting the transfer of
media data from this DataSourceAbstractPushBufferCaptureDevice.doStart()protected void doStop()
throws IOException
doStop in class AbstractPushBufferCaptureDeviceIOException - if anything goes wrong while stopping the transfer of
media data from this DataSourceAbstractPushBufferCaptureDevice.doStop()protected javax.media.Format[] getSupportedFormats(int streamIndex)
getSupportedFormats in class AbstractPushBufferCaptureDevicestreamIndex - the zero-based index of the PushBufferStream
for which the specified FormatControl is to report the list of
supported FormatsAbstractPushBufferCaptureDevice.getSupportedFormats(int)protected javax.media.Format setFormat(int streamIndex,
javax.media.Format oldValue,
javax.media.Format newValue)
setFormat in class AbstractPushBufferCaptureDevicestreamIndex - the zero-based index of the PushBufferStream
the Format of which is to be setoldValue - the last-known Format for the
PushBufferStream at the specified streamIndexnewValue - the Format which is to be setAbstractPushBufferCaptureDevice.setFormat(int, Format, Format)public void setLocator(javax.media.MediaLocator locator)
setLocator in class javax.media.protocol.DataSourcelocator - the MediaLocator which specifies the media source
of this DataSourceDataSource.setLocator(MediaLocator)Copyright © 2022 jitsi.org. All rights reserved.