<!--
{
  "availability" : [
    "iOS: 8.0.0 - 27.0.0",
    "iPadOS: 8.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.10.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetReaderOutputMetadataAdaptor/nextTimedMetadataGroup()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetReaderOutputMetadataAdaptor(im)nextTimedMetadataGroup"
  },
  "title" : "nextTimedMetadataGroup()"
}
-->

# nextTimedMetadataGroup()

Returns the next timed metadata group for the asset reader output.

```
func nextTimedMetadataGroup() -> AVTimedMetadataGroup?
```

## Return Value

A timed metadata group that represents the next logical segment of metadata from the source asset reader output.

## Discussion

This method returns `nil` after the adaptor reads all timed metadata groups from the output, or if an error occurs. When the return value is `nil`, check the asset reader’s [`status`](/documentation/AVFoundation/AVAssetReader/status-swift.property) property to determine why it couldn’t read more samples.

---

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)