javax.media
接口 Duration

所有已知子接口:
Controller, Demultiplexer, Player, Processor, Track
所有已知实现类:
BasicController, BasicPlayer, BasicProcessor, BasicSourceModule, MediaPlayer, MediaProcessor, PlaybackEngine, ProcessEngine

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.

This is the JMF 1.0 Duration interface.


字段摘要
static Time DURATION_UNBOUNDED
          Returned by getDuration.
static Time DURATION_UNKNOWN
          Returned by getDuration.
 
方法摘要
 Time getDuration()
          Get the duration of the media represented by this object.
 

字段详细信息

DURATION_UNBOUNDED

static final Time DURATION_UNBOUNDED
Returned by getDuration.


DURATION_UNKNOWN

static final Time DURATION_UNKNOWN
Returned by getDuration.

方法详细信息

getDuration

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.

返回:
A Time object representing the duration or DURATION_UNKNOWN.