getDuration

abstract fun getDuration(): Int

Gets the duration of the media file.

Return

the duration in seconds. Default is 0.