(src: string, projectDir: string)
| 15 | export type MediaDurationProber = (src: string) => Promise<number>; |
| 16 | |
| 17 | function resolveMediaSrc(src: string, projectDir: string): string { |
| 18 | return src.startsWith("http://") || src.startsWith("https://") ? src : resolve(projectDir, src); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Compile HTML with full duration resolution. |
no test coverage detected