All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.media.Duration

public interface Duration
The 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.

Version:
1.16, 97/08/23
See Also:
Controller, DurationUpdateEvent

Variable Index

 o DURATION_UNBOUNDED
Returned by getDuration.
 o DURATION_UNKNOWN
Returned by getDuration.

Method Index

 o getDuration()
Get the duration of the media represented by this object.

Variables

 o DURATION_UNBOUNDED
 public static final Time DURATION_UNBOUNDED
Returned by getDuration.

 o DURATION_UNKNOWN
 public static final Time DURATION_UNKNOWN
Returned by getDuration.

Methods

 o getDuration
 public abstract Time getDuration()
Get the duration of the media represented by this object. The value returned is the media's duration when played at the default rate. If the duration can't be determined (for example, the media object is presenting live video) getDuration returns DURATION_UNKNOWN.

Returns:
A Time object representing the duration or DURATION_UNKNOWN.

All Packages  Class Hierarchy  This Package  Previous  Next  Index