Buffer.duration

Get duration field.

  1. gst.types.ClockTime duration [@property getter]
    class Buffer
    @property
    duration
    ()
  2. gst.types.ClockTime duration [@property setter]

Return Value

Type: gst.types.ClockTime

duration in time of the buffer data, can be #GST_CLOCK_TIME_NONE when the duration is not known or relevant.