video.d.ts 904 B

1234567891011121314151617181920212223242526272829303132
  1. /// <reference types="node" />
  2. import { VapConfig } from "./type";
  3. export default class VapVideo {
  4. constructor(options: any);
  5. options: VapConfig;
  6. private fps;
  7. requestAnim: Function;
  8. container: HTMLElement;
  9. video: HTMLVideoElement;
  10. private events;
  11. private _drawFrame;
  12. private animId;
  13. private useFrameCallback;
  14. private firstPlaying;
  15. private setBegin;
  16. precacheSource(source: any): Promise<string>;
  17. initVideo(): void;
  18. drawFrame(_: any, info: any): void;
  19. play(): void;
  20. pause(): void;
  21. setTime(t: any): void;
  22. requestAnimFunc(): ((cb: any) => number) | ((cb: any) => NodeJS.Timeout);
  23. cancelRequestAnimation(): void;
  24. destroy(): void;
  25. clear(): void;
  26. on(event: any, callback: EventListenerObject): this;
  27. onplaying(): void;
  28. onpause(): void;
  29. onended(): void;
  30. oncanplay(): void;
  31. onerror(err: any): void;
  32. }