CompositionModel

public struct CompositionModel : Equatable, Uneditable
extension CompositionModel: ObjectiveCBridgeable

A CompositionModel holds information about the individual video clips that compose the output video.

Properties

  • The individual video clips that define the video composition.

    Declaration

    Swift

    public var clips: [VideoClipModel]

Helpers

  • Searches for a VideoClipModel with the given UUID.

    Declaration

    Swift

    public func clipModel(with uuid: UUID) -> (Int, VideoClipModel)?

    Parameters

    uuid

    The UUID of the video clip model to search for.

    Return Value

    A tuple with the index of the video clip model within the video clip model array and the video clip model if it is found, nil otherwise.

Initializers

  • Creates a new CompositionModel with an empty clips array.

    Declaration

    Swift

    public init()
  • Creates a new CompositionModel with the given video clips.

    Declaration

    Swift

    public init(clips: [VideoClipModel])

    Parameters

    clips

    The individual video clips that define the video composition.