( videoId: string, )
| 348 | } |
| 349 | |
| 350 | async function getCompletedMetadata( |
| 351 | videoId: string, |
| 352 | ): Promise<MediaServerProcessResult["metadata"] | null> { |
| 353 | const [video] = await db() |
| 354 | .select({ |
| 355 | duration: videos.duration, |
| 356 | width: videos.width, |
| 357 | height: videos.height, |
| 358 | fps: videos.fps, |
| 359 | }) |
| 360 | .from(videos) |
| 361 | .where(eq(videos.id, videoId as Video.VideoId)); |
| 362 | |
| 363 | return getMetadataFromVideoRow(video); |
| 364 | } |
| 365 | |
| 366 | async function waitForProcessingCompletion( |
| 367 | videoId: string, |
no test coverage detected