Creates a data object containing the movie header for a movie object.
SDKs
- iOS 13.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- watchOS 6.0+
Framework
- AVFoundation
Declaration
- (NSData *)movieHeaderWithFileType:(AVFile Type)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.