Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(screencast): add private recording APIs and basic test #3296

Merged
merged 7 commits into from
Aug 11, 2020

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Aug 4, 2020

@@ -58,6 +58,8 @@ export interface PageDelegate {
canScreenshotOutsideViewport(): boolean;
resetViewport(): Promise<void>; // Only called if canScreenshotOutsideViewport() returns false.
setBackgroundColor(color?: { r: number; g: number; b: number; a: number; }): Promise<void>;
startVideoRecording(options: types.VideoRecordingOptions): Promise<void>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to the browser context to cover popups, wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the ultimate plan. This requires generating file names, events that video started etc. For now I'd like to have basic functionality to provide some test coverage. Context level API can be added on top of it. Do you think we won't need page level start/stop functionality?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as it is on delegate only - lgtm!

@aslushnikov
Copy link
Contributor

I'd love to have a page.screencast.* namespace!

@yury-s yury-s force-pushed the screencast-private-and-test branch from f77880f to d40c3d5 Compare August 5, 2020 23:53
@pavelfeldman
Copy link
Member

I'd love to have a page.screencast.* namespace!

I actually had an argument against namespaces - they made rpc / other langs a bit harder to implement. So I would love to learn why you prefer it to make sure we make a balanced call

@yury-s yury-s force-pushed the screencast-private-and-test branch 2 times, most recently from 135b74d to 3bb284d Compare August 11, 2020 00:04
@yury-s yury-s force-pushed the screencast-private-and-test branch from 845456e to 5b77b33 Compare August 11, 2020 03:12
@yury-s yury-s merged commit d8d845a into microsoft:master Aug 11, 2020
@yury-s yury-s deleted the screencast-private-and-test branch August 11, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants