Contents

init(outputURL:fileType:)

Creates an object that writes media data to a container file at the output URL.

Declaration

init(outputURL: URL, fileType outputFileType: AVFileType) throws

Parameters

  • outputURL:

    The location of the file to write.

  • outputFileType:

    The type of container file to write.

Discussion

Writing fails if a file already exists at the output URL.

See Also

Creating an asset writer