Instance Method

writeMovieHeaderToURL:fileType:options:error:

Writes the movie header to the specified URL.

Declaration

- (BOOL)writeMovieHeaderToURL:(NSURL *)URL fileType:(AVFileType)fileType options:(AVMovieWritingOptions)options error:(NSError * _Nullable *)outError;

Parameters

URL

The URL indicating where to write the movie header.

fileType

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

options

The AVMovieWritingOptions constants whose bits specify the options for writing the movie header.

outError

The error, if any, that occurred.

Return Value

Returns true after succesfully writing the movie header.

See Also

Creating and Writing Headers

- movieHeaderWithFileType:error:

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

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.