public abstract class DefaultCallbackMedia extends AbstractCallbackMedia
CallbackMedia
media that uses a Java byte array for an IO buffer
when reading media data.
A sub-class need only provide an implementation for onRead(byte[], int)
.
This implementation uses a Java byte array, you can instead get direct access to the native
buffer by sub-classing AbstractCallbackMedia
directly.
Constructor and Description |
---|
DefaultCallbackMedia(boolean seekable,
int ioBufferSize,
String... mediaOptions)
Create a new media instance.
|
DefaultCallbackMedia(boolean seekable,
String... mediaOptions)
Create a new media instance with a default IO buffer size.
|
getClose, getOpaque, getOpen, getRead, getSeek, isSeekable
mediaOptions
public DefaultCallbackMedia(boolean seekable, String... mediaOptions)
seekable
- true
if the media is seekable; false
if it is notmediaOptions
- zero or more media optionspublic DefaultCallbackMedia(boolean seekable, int ioBufferSize, String... mediaOptions)
seekable
- true
if the media is seekable; false
if it is notioBufferSize
- IO buffer sizemediaOptions
- zero or more media optionsCopyright © 2009–2015 Caprica Software Limited. All rights reserved.