init(url:fileType:)
Returns a new object that writes media data to a container file at the output URL.
Declaration
convenience init(url outputURL: URL, fileType outputFileType: AVFileType) throwsParameters
- outputURL:
The location of the file to write.
- outputFileType:
The type of container file to write.
Return Value
A new asset writer.
Discussion
Writing fails if a file already exists at the output URL.