Rewrite frontend as single self-contained HTML file — all CSS/JS inline, no external files to fail loading

This commit is contained in:
2026-05-13 17:24:10 +02:00
parent 3432d362e2
commit ddb0f88257
116 changed files with 4240 additions and 921 deletions

37
dist/utils/mediaUtils.d.ts vendored Normal file
View File

@@ -0,0 +1,37 @@
import { AudioSegment } from '../interfaces';
import { Config } from '../config/config';
/**
* Get the duration of a video file in seconds
* @param videoFilePath - Path to the video file
* @returns Duration in seconds
*/
export declare function getVideoDuration(videoFilePath: string): number;
/**
* Capture a frame from a video at a specific time position
* @param videoFilePath - Path to the video file
* @param timePosition - Time position in seconds
* @param outputPath - Output path for the captured frame
* @param lowQuality - If true, save screenshot in 360p resolution
*/
export declare function captureVideoFrame(videoFilePath: string, timePosition: number, outputPath: string, lowQuality?: boolean): void;
/**
* Get the duration of an audio file in seconds
* @param audioFilePath - Path to the audio file
* @returns Duration in seconds
*/
export declare function getAudioDuration(audioFilePath: string): number;
/**
* Combine audio segments into a single audio track using lossless intermediates
* @param segments - Array of audio segment information
* @param outputPath - Output path for the combined audio
* @param videoDuration - Duration of the video in seconds
* @param settings - Configuration settings
*/
export declare function combineAudioSegments(segments: AudioSegment[], outputPath: string, videoDuration: number, settings: Config): string | {
commandFile: string;
};
/**
* Clean up temporary files
* @param tempDir - Directory containing temporary files
*/
export declare function cleanupTempFiles(tempDir: string): void;