Appends the sample buffer synchronously if the input is ready for more media data.
- Parameter sampleBuffer: The sample 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.
Suspends until the input is ready for more media data, then appends the sample buffer.
- Parameter sampleBuffer: The sample 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.