-
Notifications
You must be signed in to change notification settings - Fork 4
Add additional recording options #450
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
Conversation
No slash of text updating while the user can see it.
It's easy to accidentally highlight when going to record
|
Preview build will be at |
| }, dataWindow.duration); | ||
| if (isRecording) { | ||
| // Set the start recording line | ||
| const now = new Date().getTime(); |
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'd feel better about this if this could get the timestamps from the code that controls the recording.
Maybe we have a way to listen for recording events that include timestamps rather than using React state.
const recorder = useRecorder()
useEffect(() => {
// With clean-up omitted, events carry a timestamp
recorder.addEventListener("recordingstart", ...)
recorder.addEventListener("recordingstop", ...)
}, [recorder]);
We can look at this in a follow up PR.
Apply same variant to both record buttons for consistency
| useEffect(() => { | ||
| if ( | ||
| !recordingDialogDisclosure.isOpen && | ||
| gestures.length === 1 && | ||
| gestures[0].recordings.length === 1 | ||
| ) { | ||
| tourStart(TourId.CollectDataToTrainModel); | ||
| } | ||
| }, [gestures, recordingDialogDisclosure.isOpen, tourStart]); |
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.
Would have prefered to do this on recording dialog close, but the latest version of the gesture recordings aren't available at that point.
microbit-grace
left a comment
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.
LGTM, not sure if @microbit-matt-hillsdon has anymore comments
userSelect: noneto recording status under recording button