-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
chore(webkit): add video recording #23579
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
297e41b
factor console logging out of run.ts
flotwig 173de9f
fix print-run
flotwig e493600
minimize diff
flotwig beb3f2d
chore(server): convert browsers/index to typescript
flotwig 4957a83
fix tests
flotwig c255548
update stubbed tests
flotwig b01e8c0
convert electron.js to .ts
flotwig ce15192
Suggestions from code review
flotwig 8bd49f3
Clean up new type errors
flotwig 8e8f62a
electron.connectToExisting can be sync
flotwig 501895a
more type errors for the type god
flotwig 5e74399
Suggestions from code review
flotwig d25b9e0
refactor: move more of video capture into browser automations
flotwig 9b8cfbe
unit tests
flotwig a7f6d4b
Merge remote-tracking branch 'origin/develop' into refactor-defaultBr…
flotwig e3b1979
refactor: move videoCapture to browsers
flotwig c3f6915
fix snapshots
flotwig ce0a27f
fix multi-spec videos?
flotwig e41dd70
webkit video recording works!
flotwig 645a8d7
webkit system tests
flotwig 059748b
skip system-tests that won't be fixed in this PR
flotwig 84554e4
fix single-tab mode
flotwig 2b9f33f
cleanup/api renames
flotwig 115a07c
fix more tests
flotwig 4ad2279
minimize diff, fix ff
flotwig a449c8f
fix unit tests
flotwig 2468f9f
fix tests
flotwig d38ae27
cleanup
flotwig 47adf21
Merge remote-tracking branch 'origin/develop' into webkit-video
flotwig 22ddb94
clean up wantsWrite logic
flotwig 45e9b8f
Clean up setVideoController/newFfmpegVideoController naming
flotwig edff645
Merge branch 'develop' into webkit-video
flotwig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen this before, tricky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... I don't know the "right" way to change the type of an object, type-safely, without using
class ... extends ...
. If there even is a way withoutas unknown
. Would be nice to eventually remove the need for this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one seems a quick fix #23693
I think what you are referring to is something like
Now as long as
arg
extendsSomeBaseClass
you should get type safety (error if you don't extend the base class).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe like this?
https://www.typescriptlang.org/play?#code/IYIwzgLgTsDGEAJYBthjAgagUwBYEsVsEBvAKAUoVEhngQHNtF8ATBACgEoEAuBWvgB2DMmKoIA7rmzZkYfkICuAWxDYoFKrAD2Q2kvg6oHabPmLV6qD3ISJEAmAB0ZuRgC8Ume62UAvmSBZChoGADCwFAI2AAeENhCrBg4BESkfghsCF4A5LBRuZmJDMLY-Lly2PBQhLkIAD4IuQAOzFA6yEWZuvrQhhDGHCVlFVU1dY3NbdCdubaZEmBKbSYALFyLVI74LiNCxF772Jn+CEFioegIAEL4ANbEcQlJKXiEyMR2VNl5IA-YIoSFQ6VhyCogFSxepNXIgpRCCDAYQw5odYCsboSXoGIwmEFg5AQqGouE6BFIlFTXLozELexUZarDgAJk2DMoOxcBLkOQQPOQp3OwQAZgj4Pg9IwoLIIAAeAAqMXiiWSWHeRAAfBwWsAAJ7IHQY-gK+lIPRgTrYZyGhgcAAGCr1bSyGAAJCRdQajaxnGwzpJ8I4EB6vYaMa4fPIzso1BoEDoRd5zC57ZtggwZcwOAdJAhIiZKp8JrB5ptM7Kc9g83dHhwyRTkUIy2QgA
Also works with
interface
and plain objects ... not just limited toclass
.