MediaStream.getDuration

Gets the duration of the stream.

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

class MediaStream
long
getDuration
()

Return Value

Type: long

the duration of the stream or 0 if not known.

Meta