import { test, expect, type Page } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import * as urls from "./urls"; // --------------------------------------------------------------------------- // The Play view's engine (components/projects/review/playEngine/): the cut // plays like the finished video, edges first. // // - the EDGES are the render's: each clip snapped to its silences by the // build's own code (the cut-points route), and the bench draws where // the render will cut as a ghost with its offset // - an edge moved in the bench is what Play schedules next // - the CLOCK is the sound's: one AudioContext, every clip a node started // ahead of its time (so on the sample); suspend the context and the // whole view stops with it // - the PICTURE follows the clock: WebCodecs where the browser has it (a // dissolve is two layers),