Contents

outputDuration

The output duration of the sample buffer.

Declaration

var outputDuration: CMTime { get }

Discussion

This is the duration of decoded, trimmed and stretched samples. It is calculated as: (Duration - TrimDurationAtStart - TrimDurationAtEnd) / SpeedMultiplier.

  • Duration is duration property of this sample buffer.

  • TrimDurationAtStart is the value of trimDurationAtStart attachment (default 0).

  • TrimDurationAtEnd is the value of trimDurationAtEnd attachment (default 0).

  • SpeedMultiplier is the value of speedMultiplier attachment (default 1).