init
TypeScriptstatic initUrlFileType(outputURL: string, outputFileType: AVFileType): AVAssetWriterSwift declarationconvenience init(url outputURL: URL, fileType outputFileType: AVFileType) throwsclass · iOS 4.1+ · SDK 27.1
class AVAssetWriterstatic initUrlFileType(outputURL: string, outputFileType: AVFileType): AVAssetWriterSwift declarationconvenience init(url outputURL: URL, fileType outputFileType: AVFileType) throwsadd(input: AVAssetWriterInput): voidSwift declarationfunc add(_ input: AVAssetWriterInput)add78932(inputGroup: AVAssetWriterInputGroup): voidSwift declarationfunc add(_ inputGroup: AVAssetWriterInputGroup)canAdd(input: AVAssetWriterInput): booleanSwift declarationfunc canAdd(_ input: AVAssetWriterInput) -> BoolcanAdd93102(inputGroup: AVAssetWriterInputGroup): booleanSwift declarationfunc canAdd(_ inputGroup: AVAssetWriterInputGroup) -> BoolcanApply(outputSettings: (Record<string, unknown>) | null, mediaType: AVMediaType): booleanSwift declarationfunc canApply(outputSettings: [String : Any]?, forMediaType mediaType: AVMediaType) -> BoolcancelWriting(): voidSwift declarationfunc cancelWriting()endSession(endTime: _CoreMedia_CMTime): voidSwift declarationfunc endSession(atSourceTime endTime: CMTime)finishWriting(handler: (() => void)): voidSwift declarationfunc finishWriting() asyncflushSegment(): voidSwift declarationfunc flushSegment()static initContentType(outputContentType: _UniformTypeIdentifiers_UTType): AVAssetWriterSwift declarationinit(contentType outputContentType: UTType)static initOutputURLFileType(outputURL: string, outputFileType: AVFileType): AVAssetWriterSwift declarationinit(outputURL: URL, fileType outputFileType: AVFileType) throwsstartSession(startTime: _CoreMedia_CMTime): voidSwift declarationfunc startSession(atSourceTime startTime: CMTime)startWriting(): booleanSwift declarationfunc startWriting() -> Boolget availableMediaTypes(): Array<AVMediaType>Swift declarationvar availableMediaTypes: [AVMediaType] { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any AVAssetWriterDelegate)? { get set }set delegate(value: (Implements<AVAssetWriterDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any AVAssetWriterDelegate)? { get set }get directoryForTemporaryFiles(): (string) | nullSwift declarationvar directoryForTemporaryFiles: URL? { get set }set directoryForTemporaryFiles(value: (string) | null)Swift declarationvar directoryForTemporaryFiles: URL? { get set }get error(): (NativeError) | nullSwift declarationvar error: (any Error)? { get }get initialMovieFragmentInterval(): _CoreMedia_CMTimeSwift declarationvar initialMovieFragmentInterval: CMTime { get set }set initialMovieFragmentInterval(value: _CoreMedia_CMTime)Swift declarationvar initialMovieFragmentInterval: CMTime { get set }get initialMovieFragmentSequenceNumber(): numberSwift declarationvar initialMovieFragmentSequenceNumber: Int { get set }set initialMovieFragmentSequenceNumber(value: number)Swift declarationvar initialMovieFragmentSequenceNumber: Int { get set }get initialSegmentStartTime(): _CoreMedia_CMTimeSwift declarationvar initialSegmentStartTime: CMTime { get set }set initialSegmentStartTime(value: _CoreMedia_CMTime)Swift declarationvar initialSegmentStartTime: CMTime { get set }get inputGroups(): Array<AVAssetWriterInputGroup>Swift declarationvar inputGroups: [AVAssetWriterInputGroup] { get }get inputs(): Array<AVAssetWriterInput>Swift declarationvar inputs: [AVAssetWriterInput] { get }get metadata(): Array<AVMetadataItem>Swift declarationvar metadata: [AVMetadataItem] { get set }set metadata(value: Array<AVMetadataItem>)Swift declarationvar metadata: [AVMetadataItem] { get set }get movieFragmentInterval(): _CoreMedia_CMTimeSwift declarationvar movieFragmentInterval: CMTime { get set }set movieFragmentInterval(value: _CoreMedia_CMTime)Swift declarationvar movieFragmentInterval: CMTime { get set }get movieTimeScale(): numberSwift declarationvar movieTimeScale: CMTimeScale { get set }set movieTimeScale(value: number)Swift declarationvar movieTimeScale: CMTimeScale { get set }get outputFileType(): AVFileTypeSwift declarationvar outputFileType: AVFileType { get }get outputFileTypeProfile(): (AVFileTypeProfile) | nullSwift declarationvar outputFileTypeProfile: AVFileTypeProfile? { get set }set outputFileTypeProfile(value: (AVFileTypeProfile) | null)Swift declarationvar outputFileTypeProfile: AVFileTypeProfile? { get set }get outputURL(): stringSwift declarationvar outputURL: URL { get }get overallDurationHint(): _CoreMedia_CMTimeSwift declarationvar overallDurationHint: CMTime { get set }set overallDurationHint(value: _CoreMedia_CMTime)Swift declarationvar overallDurationHint: CMTime { get set }get preferredOutputSegmentInterval(): _CoreMedia_CMTimeSwift declarationvar preferredOutputSegmentInterval: CMTime { get set }set preferredOutputSegmentInterval(value: _CoreMedia_CMTime)Swift declarationvar preferredOutputSegmentInterval: CMTime { get set }get isProVideoStorageSupported(): booleanSwift declarationvar isProVideoStorageSupported: Bool { get }get producesCombinableFragments(): booleanSwift declarationvar producesCombinableFragments: Bool { get set }set producesCombinableFragments(value: boolean)Swift declarationvar producesCombinableFragments: Bool { get set }get shouldOptimizeForNetworkUse(): booleanSwift declarationvar shouldOptimizeForNetworkUse: Bool { get set }set shouldOptimizeForNetworkUse(value: boolean)Swift declarationvar shouldOptimizeForNetworkUse: Bool { get set }get status(): AVAssetWriter_StatusSwift declarationvar status: AVAssetWriter.Status { get }get usesProVideoStorage(): booleanSwift declarationvar usesProVideoStorage: Bool { get set }set usesProVideoStorage(value: boolean)Swift declarationvar usesProVideoStorage: Bool { get set }inputReceiver(input: AVAssetWriterInput): AVAssetWriterInput_SampleBufferReceiverSwift declarationfunc inputReceiver(for input: AVAssetWriterInput) -> sending AVAssetWriterInput.SampleBufferReceiverAttaches the input to the writer and returns an input receiver for writing sample buffers. - Parameter input: The input to be attached to the writer. - Returns: A writer input receiver with an interface for writing sample buffers.
inputCaptionReceiver(input: AVAssetWriterInput): AVAssetWriterInput_CaptionReceiverSwift declarationfunc inputCaptionReceiver(for input: AVAssetWriterInput) -> sending AVAssetWriterInput.CaptionReceiverAttaches the input to the writer and returns an input receiver for writing caption data. - Parameter input: The input to be attached to the writer. - Returns: A writer input receiver with an interface for writing caption data.
inputMetadataReceiver(input: AVAssetWriterInput): AVAssetWriterInput_MetadataReceiverSwift declarationfunc inputMetadataReceiver(for input: AVAssetWriterInput) -> sending AVAssetWriterInput.MetadataReceiverAttaches the input to the writer and returns an input receiver for writing timed metadata group. - Parameter input: The input to be attached to the writer. - Returns: A writer input receiver with an interface for writing timed metadata group.
inputPixelBufferReceiver(input: AVAssetWriterInput, attributes?: (_CoreVideo_CVPixelBufferCreationAttributes) | null): AVAssetWriterInput_PixelBufferReceiverSwift declarationfunc inputPixelBufferReceiver(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending AVAssetWriterInput.PixelBufferReceiverAttaches the input to the writer and returns an input receiver for writing pixel buffers. - Parameter input: The input to be attached to the writer. - Parameter attributes: The attributes of pixel buffers that will be vended by the input provider's pixel buffer pool. - Returns: A writer input receiver with an interface for writing pixel buffers.
inputReceiverRequestingMultiPass(input: AVAssetWriterInput): [AVAssetWriterInput_SampleBufferReceiver, AVAssetWriterInput_MultiPassController]Swift declarationfunc inputReceiverRequestingMultiPass(for input: AVAssetWriterInput) -> sending (AVAssetWriterInput.SampleBufferReceiver, AVAssetWriterInput.MultiPassController)Attaches the input to the writer and returns a tuple with an input receiver for writing sample buffers, and an associated multi pass controller. - Parameter input: The input to be attached to the writer. - Returns: A tuple with an input receiver for writing sample buffers, and an associated multi pass controller.
inputTaggedPixelBufferGroupReceiver(input: AVAssetWriterInput, attributes?: (_CoreVideo_CVPixelBufferCreationAttributes) | null): AVAssetWriterInput_TaggedPixelBufferGroupReceiverSwift declarationfunc inputTaggedPixelBufferGroupReceiver(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending AVAssetWriterInput.TaggedPixelBufferGroupReceiverAttaches the input to the writer and returns an input receiver for writing tagged pixel buffers. - Parameter input: The input to be attached to the writer. - Parameter attributes: The attributes of pixel buffers that will be vended by the input provider's pixel buffer pool. - Returns: A writer input receiver with an interface for writing pixel buffers.
inputCaptionReceiverRequestingMultiPass(input: AVAssetWriterInput): [AVAssetWriterInput_CaptionReceiver, AVAssetWriterInput_MultiPassController]Swift declarationfunc inputCaptionReceiverRequestingMultiPass(for input: AVAssetWriterInput) -> sending (AVAssetWriterInput.CaptionReceiver, AVAssetWriterInput.MultiPassController)Attaches the input to the writer and returns a tuple with an input receiver for writing caption data, and an associated multi pass controller. - Parameter input: The input to be attached to the writer. - Returns: A tuple with an input receiver for writing caption data, and an associated multi pass controller.
inputMetadataReceiverRequestingMultiPass(input: AVAssetWriterInput): [AVAssetWriterInput_MetadataReceiver, AVAssetWriterInput_MultiPassController]Swift declarationfunc inputMetadataReceiverRequestingMultiPass(for input: AVAssetWriterInput) -> sending (AVAssetWriterInput.MetadataReceiver, AVAssetWriterInput.MultiPassController)Attaches the input to the writer and returns a tuple with an input receiver for writing timed metadata group, and an associated multi pass controller. - Parameter input: The input to be attached to the writer. - Returns: A tuple with an input receiver for writing timed metadata group, and an associated multi pass controller.
inputPixelBufferReceiverRequestingMultiPass(input: AVAssetWriterInput, attributes?: (_CoreVideo_CVPixelBufferCreationAttributes) | null): [AVAssetWriterInput_PixelBufferReceiver, AVAssetWriterInput_MultiPassController]Swift declarationfunc inputPixelBufferReceiverRequestingMultiPass(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending (AVAssetWriterInput.PixelBufferReceiver, AVAssetWriterInput.MultiPassController)Attaches the input to the writer and returns a tuple with an input receiver for writing pixel buffers, and an associated multi pass controller. - Parameter input: The input to be attached to the writer. - Parameter attributes: The attributes of pixel buffers that will be vended by the input provider's pixel buffer pool. - Returns: A tuple with an input receiver for writing pixel buffers, and an associated multi pass controller.
inputTaggedPixelBufferGroupReceiverRequestingMultiPass(input: AVAssetWriterInput, attributes?: (_CoreVideo_CVPixelBufferCreationAttributes) | null): [AVAssetWriterInput_TaggedPixelBufferGroupReceiver, AVAssetWriterInput_MultiPassController]Swift declarationfunc inputTaggedPixelBufferGroupReceiverRequestingMultiPass(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending (AVAssetWriterInput.TaggedPixelBufferGroupReceiver, AVAssetWriterInput.MultiPassController)Attaches the input to the writer and returns a tuple with an input receiver for writing tagged pixel buffers, and an associated multi pass controller. - Parameter input: The input to be attached to the writer. - Parameter attributes: The attributes of pixel buffers that will be vended by the input provider's pixel buffer pool. - Returns: A tuple with an input receiver for writing pixel buffers, and an associated multi pass controller.
start(): voidSwift declarationfunc start() throwsPrepares the writer to write media data to its output file. - Throws: An error if reading fails to start.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVAssetWriter.init()
inherited init: cannot prove legal (class declares 5 custom initializers)