Contents

init(numberOfFrames:duration:)

Declaration

init(numberOfFrames frameCount: Int, duration: CMTime)

Parameters

  • frameCount:

    The number of frames in this planned video segment.

  • duration:

    The duration of this planned video segment.

Return Value

An instance of AVPlannedVideoSegmentConfiguration.

Discussion

Creates an instance of AVPlannedVideoSegmentConfiguration specifying the number of frames in and total duration of the segment.

For best results, frameCount and duration should be greater or equal to the minimumFrameCount and minimumDuration of AVPlannedVideoSegmentBoundaryGuidelines respectively. This initializer throws NSInvalidArgumentException if frameCount is less than or equal to 0, or duration is not numeric, or duration is less than or equal to 0.