timestamp is used for naming files!

This commit is contained in:
Simon Knott 2024-09-10 11:55:56 +02:00
parent 06f1f77aa7
commit 48d7c70a2f
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -53,7 +53,7 @@ export class VideoRecorder {
private constructor(page: Page, ffmpegPath: string, progress: Progress) {
this._progress = progress;
this._ffmpegPath = ffmpegPath;
page.on(Page.Events.ScreencastFrame, frame => this.writeFrame(frame.buffer, frame.frameSwapWallTime));
page.on(Page.Events.ScreencastFrame, frame => this.writeFrame(frame.buffer, frame.frameSwapWallTime / 1000));
}
private async _launch(options: types.PageScreencastOptions) {