Type Method

movieWithData:options:

Returns a movie object from a movie stored in an NSData object.

Declaration

+ (instancetype)movieWithData:(NSData *)data options:(NSDictionary<NSString *,id> *)options;

Parameters

data

An NSData object that contains a movie header.

options

A dictionary that contains key for specifying the movie object initialization. Currently, no keys are defined.

Return Value

An AVMovie object.

Discussion

Use this method to create movies from movie headers that are not stored in files, which can include movies on the pasteboard.

See Also

Initializing a Movie

- initWithURL:options:

Creates a movie object from a movie header stored in a QuickTime movie file of ISO base media file.

+ movieWithURL:options:

Returns a movie object from a movie header stored in a QuickTime movie file of ISO base media file.

- initWithData:options:

Creates a movie object from a movie stored in an NSData object.