Segment.duration

Get duration field.

  1. ulong duration [@property getter]
    class Segment
    @property
    ulong
    duration
    ()
  2. ulong duration [@property setter]

Return Value

Type: ulong

the duration of the segment is the maximum absolute difference between #GstSegment.start and #GstSegment.stop if stop is not set, otherwise it should be the difference between those two values. This should be set by elements that know the overall stream duration (like demuxers) and will be used when seeking with #GST_SEEK_TYPE_END.