AVAssetWritingPlanner.SegmentResult.successWithState(_:)
Finish the segment successfully with custom client state.
Declaration
case successWithState(Data)Parameters
- clientState:
Custom data to save for this segment. Commonly used to save algorithm state, progress information, or metadata needed for resumption.
Discussion
Use this case to save custom state data that will be restored if the export session is interrupted and later resumed. The client state is available via clientStateToRestore when the segment is resumed. Only the last successful state data is persisted. Any previous state data will be overwritten.