Type Method

assetImageGeneratorWithAsset:

Returns an image generator for use with a specified asset.

Declaration

+ (instancetype)assetImageGeneratorWithAsset:(AVAsset *)asset;

Parameters

asset

The asset from which images will be extracted.

Return Value

An image generator for use with asset.

Discussion

This method may succeed even if the asset possesses no visual tracks at the time of initialization.

See Also

Creating an Image Generator

- initWithAsset:

Creates an image generator for use with a specified asset.