public interface Duration
Duration
interface provides a way to determine the
duration of the media being played by a media object.
Media objects that expose a media duration
implement this interface.
A Controller
that supports the Duration
interface
posts a DurationUpdateEvent
whenever its
duration changes.
Controller
,
DurationUpdateEvent
Modifier and Type | Field and Description |
---|---|
static Time |
DURATION_UNBOUNDED
Returned by
getDuration . |
static Time |
DURATION_UNKNOWN
Returned by
getDuration . |
Modifier and Type | Method and Description |
---|---|
Time |
getDuration()
Get the duration of the media represented
by this object.
|
static final Time DURATION_UNBOUNDED
getDuration
.static final Time DURATION_UNKNOWN
getDuration
.Time getDuration()
getDuration
returns DURATION_UNKNOWN
.Time
object representing the duration or DURATION_UNKNOWN.Copyright © 2013 CableLabs. All Rights Reserved.