---
title: trimDurationAtEnd
framework: coremedia
role: symbol
role_heading: Type Property
path: coremedia/cmsamplebufferattachmentkeydefinitions/trimdurationatend
---

# trimDurationAtEnd

The duration that should be removed at the end of the sample buffer, after decoding.

## Declaration

```swift
static let trimDurationAtEnd: CVAttachmentKeyDefinitionWithDefault<CMSampleBufferAttachmentKeyDefinitions.ShouldPropagate, CMTime>
```

## Discussion

Discussion The getter returns the default value of zero (nothing removed) if this attachment is not present.
