getDuration

open fun getDuration(): Long

Gets the duration of the stream.

If the duration is not known, 0 will be returned.

Return

the duration of the stream or 0 if not known.