<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "AssetsLibrary",
  "identifier" : "/documentation/AssetsLibrary/ALAssetPropertyDuration",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Assets Library"
    ],
    "preciseIdentifier" : "c:@ALAssetPropertyDuration"
  },
  "title" : "ALAssetPropertyDuration"
}
-->

# ALAssetPropertyDuration

The key to retrieve the play time duration of a video asset.

```
extern NSString * const ALAssetPropertyDuration;
```

## Discussion

The corresponding value is a double wrapped in an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object. For photos, [`ALErrorInvalidProperty`](/documentation/AssetsLibrary/ALErrorInvalidProperty) is returned.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)