---
title: mediaType
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/format/mediatype
---

# mediaType

A constant describing the media type of an AVCaptureDevice active or supported format.

## Declaration

```swift
var mediaType: AVMediaType { get }
```

## See Also

### Determining supported media formats

- [formatDescription](avfoundation/avcapturedevice/format/formatdescription.md)
