getDurationInSeconds

fun getDurationInSeconds(): Double?

Gets the total duration of the media in seconds

Return

The duration in seconds, or null if an error occurs