Appends samples to the receiver.
- iOS 4.1+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
The CMSampleBuffer to be appended.
YES if sampleBuffer as appended successfully, otherwise
The timing information in the sample buffer, considered relative to the time passed to the asset writer’s
start will be used to determine the timing of those samples in the output file.
The appended sample buffers are expected to be ordered according to storage requirements. If you're working with sample buffers containing compressed video, they should be ordered and appended according to their decode timestamp.
NO is returned, clients can check the value of the
status property to determine whether the writing operation completed, failed, or was cancelled. If the
error property will contain an instance of
NSErrorß that describes the failure.
Do not modify
sample or its contents after you have passed it to this method.