func appendImmediately(_ pixelBuffer: CVReadOnlyPixelBuffer, with presentationTime: CMTime) throws -> Bool
Appends the pixel buffer synchronously if the input is ready for more media data.
- Parameter pixelBuffer: The pixel buffer to be appended.
- Parameter presentationTime: The presentation time for the pixel buffer to be appended.
- Returns: Returns true if the append was successful, false if the input was not ready for more media data.
- Throws: An error if the underlying writer failed.
nonisolated(nonsending) func append(_ pixelBuffer: CVReadOnlyPixelBuffer, with presentationTime: CMTime) async throws
Suspends until the input is ready for more media data, then appends the pixel buffer.
- Parameter pixelBuffer: The pixel buffer to be appended.
- Parameter presentationTime: The presentation time for the pixel buffer to be appended.
- Throws: An error if the underlying writer failed.
method · iOS 26.0+
finish
TypeScript
finish(): void
Swift declaration
func finish()
Indicates to the AVAssetWriter that no more buffers will be appended to this receiver.