@rendley/sdk - v1.16.1
    Preparing search index...

    Interface ReplaceMediaOptions

    Options that control how media replacement should update dependent clips.

    interface ReplaceMediaOptions {
        imageFitStyle?: FitStyleEnum;
        mimeType?: string;
        previousMediaHeight?: number;
        previousMediaWidth?: number;
        toCropImage?: boolean;
        usePreviousMediaSize?: boolean;
    }
    Index

    Properties

    imageFitStyle?: FitStyleEnum

    How clips inherit size/scale from their previous layout. When set it wins for every clip; when omitted each clip falls back to its own fitStrategy, then the media's fitStrategy, then FitStyleEnum.MATCH_SCALE.

    mimeType?: string
    previousMediaHeight?: number
    previousMediaWidth?: number
    toCropImage?: boolean

    Whether the previous crop is remapped onto the new media. When set it wins for every clip; when omitted each clip falls back to its own fitStrategy, then the media's fitStrategy, then true.

    usePreviousMediaSize?: boolean

    When true, the fit math derives the old media size from previousMediaWidth/previousMediaHeight instead of the clip's current style. Required when the clip already initialized against the new media (post-deserialization autofit), where the style no longer reflects the old media.