Class Engine

Properties

customClipTypes: Map<string, CustomClipConstructor<CustomClip>> = ...
events: EventEmitter

Methods

  • Parameters

    • typeEnum: string
    • methodName: string
    • ...args: any[]

    Returns any

  • Parameters

    • Optionaleverything: boolean

    Returns Promise<void>

  • Parameters

    • x: number
    • y: number

    Returns null

  • Parameters

    • Optionaltime: number
    • mimeType: "image/jpeg" | "image/webp" | "image/png" = "image/png"
    • quality: number = 0.92

    Returns Promise<string>

  • Parameters

    • typeEnum: string

    Returns boolean

  • Parameters

    • value: number

    Returns Promise<void>

  • Returns {
        display: { backgroundColor: string; height: number; width: number };
        library: {
            media: {
                customData?: [string, unknown][];
                filename: string;
                hash?: string;
                id: string;
                mimeType?: string;
                permanentUrl?: string;
                type: string;
            }[];
            subtitles: {
                duration: number;
                id: string;
                language: string;
                textBlocks: { duration: number; text: string; time: number }[];
            }[];
        };
        projectId?: string;
        settings?: {
            decoderPreferredAcceleration: PreferredAcceleration;
            encoderPreferredAcceleration: PreferredAcceleration;
            m3u8MaxResolution: [number, number];
            showRenderPreview: boolean;
        };
        subtitlesManager?: {
            highlightAnimation: HighlightAnimationEnum;
            highlightAnimationSpeed: number;
            highlightTextStyle: {
                backgroundColor: string;
                backgroundCornerRadius: number;
                backgroundPadding: number;
                color: string;
                fontFamily: string;
                fontSize: number;
                fontStyle: "normal"
                | "italic"
                | "oblique";
                fontWeight:
                    | "bold"
                    | "normal"
                    | "bolder"
                    | "lighter"
                    | "100"
                    | "200"
                    | "300"
                    | "400"
                    | "500"
                    | "600"
                    | "700"
                    | "800"
                    | "900";
                padding: number;
                strokeColor: string;
                strokeThickness: number;
            };
            mainTextStyle: {
                backgroundColor: string;
                backgroundCornerRadius: number;
                backgroundPadding: number;
                color: string;
                fontFamily: string;
                fontSize: number;
                fontStyle: "normal"
                | "italic"
                | "oblique";
                fontWeight:
                    | "bold"
                    | "normal"
                    | "bolder"
                    | "lighter"
                    | "100"
                    | "200"
                    | "300"
                    | "400"
                    | "500"
                    | "600"
                    | "700"
                    | "800"
                    | "900";
                leading: number;
                padding: number;
                strokeColor: string;
                strokeThickness: number;
                wordWrap: boolean;
                wordWrapWidth: number;
            };
            textMode: "full"
            | "partial";
        };
        timeline: {
            fitDuration: number;
            fps: number;
            layers: {
                clips: any[];
                id: string;
                muted?: boolean;
                transitions: {
                    endClipId: string;
                    id: string;
                    inDuration: number;
                    name: string;
                    outDuration: number;
                    startClipId: string;
                    transitionSrc: string;
                    type: "transition";
                }[];
                visible?: boolean;
                volume?: number;
            }[];
            startTime: number;
        };
        version?: string;
    }

  • Parameters

    • subtitlesId: string
    • offset: number

    Returns void