---
title: mediaType
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phcontenteditinginput/mediatype
---

# mediaType

The type of the asset, such as video or audio.

## Declaration

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

## Discussion

Discussion See PHAssetMediaType for possible values.

## See Also

### Getting Information About the Asset

- [PHAssetMediaType](photos/phassetmediatype.md)
- [mediaSubtypes](photos/phcontenteditinginput/mediasubtypes.md)
- [PHAssetMediaSubtype](photos/phassetmediasubtype.md)
- [creationDate](photos/phcontenteditinginput/creationdate.md)
- [location](photos/phcontenteditinginput/location.md)
- [uniformTypeIdentifier](photos/phcontenteditinginput/uniformtypeidentifier.md)
