Rewrite frontend as single self-contained HTML file — all CSS/JS inline, no external files to fail loading
This commit is contained in:
37
dist/utils/mediaUtils.d.ts
vendored
Normal file
37
dist/utils/mediaUtils.d.ts
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user