outputPresentationTimeStamp
The output presentation timestamp of the sample buffer.
Declaration
var outputPresentationTimeStamp: CMTime { get set }Discussion
This is the time at which the decoded, trimmed, stretched and possibly reversed samples should commence being presented. If this property has been set explicitly, the same value is returned.
Otherwise, the value is calculated as: (PresentationTimeStamp + TrimDurationAtStart) unless reverse is true, in which case the value is calculated as: (PresentationTimeStamp + Duration - TrimDurationAtEnd)
These are generally correct for un-stretched, un-shifted playback. For general forward playback in a scaled edit, this property should be set to: ((PresentationTimeStamp + TrimDurationAtStart - EditStartMediaTime) / EditSpeedMultiplier) + EditStartTrackTime For general reversed playback: ((PresentationTimeStamp + Duration - TrimDurationAtEnd - EditStartMediaTime) / EditSpeedMultiplier) + EditStartTrackTime
PresentationTimeStamp is
presentationTimeStampproperty of this sample buffer.Duration is
durationproperty 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).
EditStartMediaTime is the start time of this playback segment.
EditStartTrackTime is the start time of the media track.
EditSpeedMultiplier is the speed of media playback.