---
title: "hasMediaCharacteristic(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablemovietrack/hasmediacharacteristic(_:)"
---

# hasMediaCharacteristic(_:)

Returns a Boolean value that indicates whether the track references media with the specified media characteristic.

## Declaration

```swift
func hasMediaCharacteristic(_ mediaCharacteristic: AVMediaCharacteristic) -> Bool
```

## Parameters

- `mediaCharacteristic`: The media characteristic of interest.

## Return Value

Return Value true if the track references media with the specified characteristic; otherwise, false.

## See Also

### Accessing track information

- [isPlayable](avfoundation/avmutablemovietrack/isplayable.md)
- [isDecodable](avfoundation/avmutablemovietrack/isdecodable.md)
- [isEnabled](avfoundation/avmutablemovietrack/isenabled.md)
- [isSelfContained](avfoundation/avmutablemovietrack/isselfcontained.md)
- [hasProtectedContent](avfoundation/avmutablemovietrack/hasprotectedcontent.md)
- [totalSampleDataLength](avfoundation/avmutablemovietrack/totalsampledatalength.md)
