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

# mediaType

The media type of the samples that the input accepts.

## Declaration

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

## See Also

### Inspecting an input

- [outputSettings](avfoundation/avassetwriterinput/outputsettings.md)
- [sourceFormatHint](avfoundation/avassetwriterinput/sourceformathint.md)
