public abstract class AbstractVideoPullBufferStream<T extends javax.media.protocol.PullBufferDataSource> extends AbstractPullBufferStream<T>
dataSource, formatControl
Modifier | Constructor and Description |
---|---|
protected |
AbstractVideoPullBufferStream(T dataSource,
javax.media.control.FormatControl formatControl)
Initializes a new AbstractVideoPullBufferStream instance which
is to have its Format-related information abstracted by a
specific FormatControl.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doRead(javax.media.Buffer buffer)
Blocks and reads into a Buffer from this
PullBufferStream.
|
void |
read(javax.media.Buffer buffer)
Blocks and reads into a Buffer from this
PullBufferStream.
|
void |
start()
Starts the transfer of media data from this
AbstractBufferStream.
|
void |
stop()
Stops the transfer of media data from this AbstractBufferStream.
|
willReadBlock
close, doGetFormat, doSetFormat, endOfStream, getContentDescriptor, getContentLength, getControls, getFormat, internalGetFormat, internalSetFormat
getControl, getControl, queryInterface, queryInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected AbstractVideoPullBufferStream(T dataSource, javax.media.control.FormatControl formatControl)
dataSource
- the PullBufferDataSource 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 instanceprotected abstract void doRead(javax.media.Buffer buffer) throws java.io.IOException
buffer
- the Buffer this PullBufferStream is to
read intojava.io.IOException
- if an I/O error occurs while this
PullBufferStream reads into the specified Bufferpublic void read(javax.media.Buffer buffer) throws java.io.IOException
buffer
- the Buffer this PullBufferStream is to
read intojava.io.IOException
- if an I/O error occurs while this
PullBufferStream reads into the specified Bufferpublic void start() throws java.io.IOException
start
in class AbstractBufferStream<T extends javax.media.protocol.PullBufferDataSource>
java.io.IOException
- if anything goes wrong while starting the transfer of
media data from this AbstractBufferStreamAbstractBufferStream.start()
public void stop() throws java.io.IOException
stop
in class AbstractBufferStream<T extends javax.media.protocol.PullBufferDataSource>
java.io.IOException
- if anything goes wrong while stopping the transfer of
media data from this AbstractBufferStreamAbstractBufferStream.stop()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.