public ReadOnlyObjectProperty<Duration> durationProperty ()

taken from field

The duration in seconds of the source media. If the media duration is unknown then this property value will be Duration.UNKNOWN.