public class QuickTimeStream extends AbstractPushBufferStream<DataSource>
Modifier and Type | Field and Description |
---|---|
(package private) QTCaptureDecompressedVideoOutput |
captureOutput
The QTCaptureOutput represented by this SourceStream.
|
PUSH_BUFFER_STREAM_CLASS_NAME, transferHandler
dataSource, formatControl
Constructor and Description |
---|
QuickTimeStream(DataSource dataSource,
javax.media.control.FormatControl formatControl)
Initializes a new QuickTimeStream instance which is to have its
Format-related information abstracted by a specific
FormatControl.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the resources used by this instance throughout its existence and
makes it available for garbage collection.
|
protected javax.media.Format |
doGetFormat()
Gets the Format of this PushBufferStream as directly
known by it.
|
float |
getFrameRate()
Gets the output frame rate of the
QTCaptureDecompressedVideoOutput represented by this
QuickTimeStream.
|
void |
read(javax.media.Buffer buffer)
Reads media data from this PushBufferStream into a specific
Buffer without blocking.
|
float |
setFrameRate(float frameRate)
Sets the output frame rate of the
QTCaptureDecompressedVideoOutput represented by this
QuickTimeStream.
|
void |
start()
Starts the transfer of media data from this PushBufferStream.
|
void |
stop()
Stops the transfer of media data from this PushBufferStream.
|
setTransferHandler
doSetFormat, endOfStream, getContentDescriptor, getContentLength, getControls, getFormat
getControl, getControl, queryInterface, queryInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
final QTCaptureDecompressedVideoOutput captureOutput
QuickTimeStream(DataSource dataSource, javax.media.control.FormatControl formatControl)
dataSource
- the DataSource which is creating the new
instance so that it becomes one of its streamsformatControl
- the FormatControl which is to abstract the
Format-related information of the new instancepublic void close()
close
in class AbstractBufferStream<DataSource>
AbstractBufferStream.close()
protected javax.media.Format doGetFormat()
doGetFormat
in class AbstractBufferStream<DataSource>
public float getFrameRate()
public void read(javax.media.Buffer buffer) throws java.io.IOException
buffer
- the Buffer in which media data is to be read from
this PushBufferStreamjava.io.IOException
- if anything goes wrong while reading media data from
this PushBufferStream into the specified bufferpublic float setFrameRate(float frameRate)
frameRate
- the output frame rate to be set on the
QTCaptureDecompressedVideoOutput represented by this
QuickTimeStreampublic void start() throws java.io.IOException
start
in class AbstractBufferStream<DataSource>
java.io.IOException
- if anything goes wrong while starting the transfer of
media data from this PushBufferStreampublic void stop() throws java.io.IOException
stop
in class AbstractBufferStream<DataSource>
java.io.IOException
- if anything goes wrong while stopping the transfer of
media data from this PushBufferStream
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.