Edit

Share via


AVAssetWriter.EndSessionAtSourceTime(CMTime) Method

Definition

Stops writing samples at the specified time.

[Foundation.Export("endSessionAtSourceTime:")]
public virtual void EndSessionAtSourceTime (CoreMedia.CMTime endTime);
abstract member EndSessionAtSourceTime : CoreMedia.CMTime -> unit
override this.EndSessionAtSourceTime : CoreMedia.CMTime -> unit

Parameters

endTime
CMTime
Attributes

Remarks

This method allows the application developer to end the writing session before the end of the last sample.

Application developers do not need to call this method if they are satisfied by the behavior of FinishWritingAsync(), which sets the session's end time to the ending timestamp of the final sample.

Applies to