Segment.setDuration

Set the duration of the segment to duration. This function is mainly used by elements that perform seeking and know the total duration of the segment. This field should be set to allow seeking requests relative to the duration.

class Segment
void
setDuration

Parameters

format GstFormat

the format of the segment.

duration long

the duration of the segment info or -1 if unknown.

Meta