Durationpublic 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.
This is the JMF 1.0
Duration interface. |
Fields Summary |
---|
public static final Time | DURATION_UNBOUNDEDReturned by getDuration . | public static final Time | DURATION_UNKNOWNReturned by getDuration . |
Methods Summary |
---|
public javax.media.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 .
|
|