-
Notifications
You must be signed in to change notification settings - Fork 179
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
Media Recording: Add Pause/Resume Support #12000
Conversation
e06d10b
to
b489ded
Compare
b489ded
to
43e2282
Compare
Plugin builds for 43e2282 are ready 🛎️!
|
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.
Works great :)
@@ -53,7 +53,7 @@ const Wrapper = styled(Text).attrs({ | |||
function DurationIndicator() { | |||
const { duration, isRecording } = useMediaRecording(({ state }) => ({ | |||
duration: state.duration, | |||
isRecording: state.status === 'recording', | |||
isRecording: ['recording', 'paused'].includes(state.status), |
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.
Nit: Would be nice to have the statuses in a constant since these are used in multiple places.
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 true. Using TypeScript would be nice here
Context
Summary
This PR adds a new Stop/Resume button to video recording.
Relevant Technical Choices
To-do
User-facing changes
Demo (ignore the blank stream, I didn't connect my virtual camera)
Screen.Recording.2022-07-25.at.15.44.24.mov
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRFixes #11923