timestamp is used for naming files!
This commit is contained in:
parent
06f1f77aa7
commit
48d7c70a2f
|
|
@ -53,7 +53,7 @@ export class VideoRecorder {
|
||||||
private constructor(page: Page, ffmpegPath: string, progress: Progress) {
|
private constructor(page: Page, ffmpegPath: string, progress: Progress) {
|
||||||
this._progress = progress;
|
this._progress = progress;
|
||||||
this._ffmpegPath = ffmpegPath;
|
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) {
|
private async _launch(options: types.PageScreencastOptions) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue