public final Duration getDuration ()

Retrieve the duration in seconds of the media.

Returns:  the duration of the media, Duration.UNKNOWN if unknown or Duration.INDEFINITE for live streams