getDuration

abstract fun getDuration(): Duration?

Returns the total duration of the current track. Note: Implementations must preserve the value with at least millisecond precision.

Return

The track duration as a Duration?