public interface Positionable
DataSource implements the Positionable interface
if it supports changing the media position within the stream.Datasource| Modifier and Type | Field and Description |
|---|---|
static int |
RoundDown |
static int |
RoundNearest |
static int |
RoundUp |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRandomAccess()
Find out if this source can be repositioned to any point in the stream.
|
Time |
setPosition(Time where,
int rounding)
Set the position to the specified time.
|
static final int RoundUp
static final int RoundDown
static final int RoundNearest
Time setPosition(Time where, int rounding)
time - The new position in the stream.round - The rounding technique to be used: RoundUp, RoundDown, RoundNearest.boolean isRandomAccess()
true if the source is random access; false if the source can only
be reset to the beginning of the stream.Copyright © 2012 code4tv.com. All Rights Reserved.