<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetMediaType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@E@PHAssetMediaType"
  },
  "title" : "PHAssetMediaType"
}
-->

# PHAssetMediaType

Identifies the general type of an asset, such as image or video.

```
enum PHAssetMediaType
```

## Overview

You use these constants with the [`PHAsset`](/documentation/Photos/PHAsset) and [`PHContentEditingInput`](/documentation/Photos/PHContentEditingInput) classes to fetch specific types of assets or to identify an asset being edited.

## Topics

### Constants

[`PHAssetMediaType.unknown`](/documentation/Photos/PHAssetMediaType/unknown)

The asset’s type is unknown.

[`PHAssetMediaType.image`](/documentation/Photos/PHAssetMediaType/image)

The asset is a photo or other static image.

[`PHAssetMediaType.video`](/documentation/Photos/PHAssetMediaType/video)

The asset is a video file.

[`PHAssetMediaType.audio`](/documentation/Photos/PHAssetMediaType/audio)

The asset is an audio file.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)