FFmpegDownloader.d.ts 803 B

12345678910111213141516171819202122232425262728293031
  1. import { DownloaderBase } from './common';
  2. export interface IRequestProgress {
  3. percent: number;
  4. speed: number;
  5. size: {
  6. total: number;
  7. transferred: number;
  8. };
  9. time: {
  10. elapsed: number;
  11. remaining: number;
  12. };
  13. }
  14. export interface IFFmpegDownloaderOptions {
  15. platform?: string;
  16. arch?: string;
  17. version?: string;
  18. mirror?: string;
  19. useCaches?: boolean;
  20. showProgress?: boolean;
  21. forceCaches?: boolean;
  22. destination?: string;
  23. }
  24. export declare class FFmpegDownloader extends DownloaderBase {
  25. static DEFAULT_OPTIONS: IFFmpegDownloaderOptions;
  26. options: IFFmpegDownloaderOptions;
  27. constructor(options: IFFmpegDownloaderOptions);
  28. fetch(): Promise<string>;
  29. protected handleVersion(version: string): Promise<string>;
  30. }