Enumeration

PHAssetMediaSubtype

Constants identifying specific variations of asset media, such as panorama or screenshot photos and time lapse or high frame rate video.

Declaration

typedef enum PHAssetMediaSubtype : NSUInteger {
    ...
} PHAssetMediaSubtype;

Overview

You use these constants with the PHAsset and PHContentEditingInput classes to fetch specific types of assets or to identify an asset being edited.

Media subtypes are bit mask values, so you can combine them using bitwise operators to test for multiple subtypes.

Topics

Media Subtypes

PHAssetMediaSubtypeNone

The asset has no subtype.

PHAssetMediaSubtypePhotoPanorama

The asset is a large-format panorama photo.

PHAssetMediaSubtypePhotoHDR

The asset is a High Dynamic Range photo.

PHAssetMediaSubtypePhotoScreenshot

The asset is an image captured with the device’s screenshot feature.

PHAssetMediaSubtypePhotoLive

The asset is a Live Photo that includes movement and sounds from the moments just before and after its capture.

PHAssetMediaSubtypeVideoStreamed

The asset is a video whose contents are always streamed over a network connection.

PHAssetMediaSubtypeVideoHighFrameRate

The asset is a high-frame-rate video.

PHAssetMediaSubtypeVideoTimelapse

The asset is a time-lapse video.

PHAssetMediaSubtypePhotoDepthEffect

The asset is a photo captured with the Camera app's Portrait mode depth effect.

See Also

Reading Asset Metadata

mediaType

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

PHAssetMediaType

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

mediaSubtypes

The subtypes of the asset, identifying special kinds of assets such as panoramic photo or high-framerate video.

sourceType

The means by which the asset entered the user’s Photos library.

PHAssetSourceType

Means by which an asset enters the Photos library, used by the PHAssetSourceType property.

pixelWidth

The width, in pixels, of the asset’s image or video data.

pixelHeight

The height, in pixels, of the asset’s image or video data.

creationDate

The date and time at which the asset was originally created.

modificationDate

The date and time at which the asset was last modified.

location

The location information saved with the asset.

duration

The duration, in seconds, of the video asset.

favorite

A Boolean value that indicates whether the user has marked the asset as a favorite.

hidden

A Boolean value that indicates whether the user has hidden the asset.

syncFailureHidden

A Boolean value that indicates whether the user has chosen to hide to the sync failure message.

Deprecated