public class DurationChangeEvent extends PlayerEvent<DurationChangeEvent>
PlayerEventTypes.DURATIONCHANGE
occurs for the Player
.- One of the cases where the duration is updated, is when you set a new source.
Modifier and Type | Method and Description |
---|---|
Double |
getDuration()
The new duration of the content.
|
public Double getDuration()
- Returns 0 if the duration is unknown. - Returns Double.NaN for a LIVE stream.