duration

abstract val duration: Int

Gets the duration of the file.

Return

the duration in milliseconds, if no duration is available (for example, if streaming live content), -1 is returned.