Segment.rate

Get rate field.

  1. double rate [@property getter]
    class Segment
    @property
    double
    rate
    ()
  2. double rate [@property setter]

Return Value

Type: double

the playback rate of the segment is set in response to a seek event and, without any seek, the value should be 1.0. This value is used by elements that synchronize buffer [running times](additional/design/synchronisation.md#running-time) on the clock (usually the sink elements), leading to consuming buffers faster (for a value > 1.0) or slower (for `0.0 < value < 1.0`) than normal playback speed. The rate also defines the playback direction, meaning that when the value is lower than 0.0, the playback happens in reverse, and the stream-time

is going backward. The rate value should never be 0.0.