---
title: nextTimedMetadataGroup()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avassetreaderoutputmetadataadaptor/nexttimedmetadatagroup()
---

# nextTimedMetadataGroup()

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

## Declaration

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

## Return Value

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

## Discussion

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 property to determine why it couldn’t read more samples.
