1// @needsAudit
2export type VideoThumbnailsResult = {
3  /**
4   * URI to the created image (usable as the source for an Image/Video element).
5   */
6  uri: string;
7  /**
8   * Width of the created image.
9   */
10  width: number;
11  /**
12   * Height of the created image.
13   */
14  height: number;
15};
16
17// @needsAudit
18export type VideoThumbnailsOptions = {
19  /**
20   * A value in range `0.0` - `1.0` specifying quality level of the result image. `1` means no
21   * compression (highest quality) and `0` the highest compression (lowest quality).
22   */
23  quality?: number;
24  /**
25   * The time position where the image will be retrieved in ms.
26   */
27  time?: number;
28  /**
29   * In case `sourceFilename` is a remote URI, `headers` object is passed in a network request.
30   */
31  headers?: Record<string, string>;
32};
33