Properties
customClipTypes
customClipTypes: Map<string, CustomClipConstructor<CustomClip>> = ... Methods
callStaticCustomClipMethod
- callStaticCustomClipMethod(
typeEnum: string,
methodName: string,
...args: any[],
): any Parameters
- typeEnum: string
- methodName: string
- ...args: any[]
Returns any
createCustomClipInstance
- createCustomClipInstance<T extends CustomClip = CustomClip>(
typeEnum: string,
...args: any[],
): T Parameters
- typeEnum: string
- ...args: any[]
Returns T
destroy
- destroy(everything?: boolean): Promise<void>
Parameters
Optional
everything: boolean
Returns Promise<void>
getClipsIdsForPoint
- getClipsIdsForPoint(x: number, y: number): null
Returns null
getFFmpeg
- getFFmpeg(): FFmpeg
Returns FFmpeg
getFrameAsBase64Image
- getFrameAsBase64Image(
time?: number,
mimeType?: "image/jpeg" | "image/webp" | "image/png",
quality?: number,
): Promise<string> Parameters
Optional
time: number- mimeType: "image/jpeg" | "image/webp" | "image/png" = "image/png"
- quality: number = 0.92
Returns Promise<string>
getProjectId
- getProjectId(): string
Returns string
getRenderer
- getRenderer(): PixiRenderer
Returns PixiRenderer
getUndoManager
- getUndoManager(): UndoManager
Returns UndoManager
hasCustomClipType
- hasCustomClipType(typeEnum: string): boolean
Returns boolean
hasInstance
- hasInstance(): boolean
Returns boolean
isInitialized
- isInitialized(): boolean
Returns boolean
isRendering
- isRendering(): boolean
Returns boolean
pause
- pause(): Promise<void>
Returns Promise<void>
play
- play(): Promise<void>
Returns Promise<void>
registerCustomClip
- registerCustomClip<T extends CustomClip = CustomClip>(
classType: CustomClipConstructor<T>,
typeEnum: string,
): void Parameters
- classType: CustomClipConstructor<T>
- typeEnum: string
Returns void
seek
- seek(value: number): Promise<void>
Returns Promise<void>
serialize
- serialize(): {
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;
} 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;
}
setSubtitles
- setSubtitles(subtitlesId: string, offset: number): void
Parameters
- subtitlesId: string
- offset: number
Returns void
shouldSplitAudio
- shouldSplitAudio(): boolean
Returns boolean
stop
- stop(): Promise<void>
Returns Promise<void>
Static
deserialize
- deserialize(data: object): Promise<undefined | Engine>
Returns Promise<undefined | Engine>