Instance Method

movieHeaderWithFileType:error:

Creates a data object containing the movie header for a movie object.

Declaration

- (NSData *)movieHeaderWithFileType:(AVFileType)fileType error:(NSError * _Nullable *)outError;

Parameters

fileType

A UTI that indicates the specific file format for the movie header.

outError

The error that occurred.

Return Value

An NSData object containing the movie header.

Discussion

The created movie header is a pure reference movie, with no base URL, suitable for use on the pasteboard.

See Also

Creating and Writing Headers

- writeMovieHeaderToURL:fileType:options:error:

Writes the movie header to the specified URL.

AVMovieWritingOptions

A set of options to control the writing of a movie header to a destination URL.

- isCompatibleWithFileType:

Returns a Boolean value that indicates whether a movie header of the specified type can be created.