-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature: Take photos and videos and record voice memos #961
base: master
Are you sure you want to change the base?
Conversation
What is |
|
idont have mac for ios demo |
added adr |
what happen if you reject permission? |
await recorderController.stop().then((value) { | ||
if (value != null) { | ||
var recordedFile = File(value); | ||
file = FileInfo(recordedFile.path.split('/').last, | ||
'${recordedFile.parent.path}/', recordedFile.lengthSync()); | ||
pickedFiles.add(file); | ||
} | ||
}); |
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.
what happens if error occur here?
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.
added error handling now it will display a toast and return to the previous screen
lib/presentation/widget/record_audio/record_audio_viewmodel.dart
Outdated
Show resolved
Hide resolved
stopwatch.stop(); | ||
audioRecorder.stopRecordingAndSave().then((result) { | ||
result.fold((failure) { | ||
store.dispatch(StopRecording()); | ||
store.dispatch(UploadFileAction(Left(failure))); | ||
}, (success) async { | ||
store.dispatch(StopRecording()); | ||
_appNavigation.popBack(); | ||
store.dispatch(UploadFileAction(Right(success))); | ||
var uploadArgs = UploadFileArguments(success.file); | ||
if (uploadFileArguments != null) { | ||
uploadArgs.shareType = uploadFileArguments!.shareType; | ||
uploadArgs.workGroupDocumentUploadInfo = | ||
uploadFileArguments!.workGroupDocumentUploadInfo; | ||
} | ||
await _appNavigation.push(RoutePaths.uploadDocumentRoute, | ||
arguments: uploadArgs); | ||
}); | ||
}); |
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.
what happen if error throw here?
store.dispatch(PauseRecording()); | ||
stopwatch.stop(); | ||
audioRecorder.pauseRecording(); |
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.
idem
lib/presentation/widget/record_audio/record_audio_viewmodel.dart
Outdated
Show resolved
Hide resolved
lib/presentation/widget/record_audio/record_audio_viewmodel.dart
Outdated
Show resolved
Hide resolved
lib/presentation/widget/record_audio/record_audio_viewmodel.dart
Outdated
Show resolved
Hide resolved
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.
a lot of format make the review hard
please use |
display a toast and return to the previous screen |
9d82f93
to
6b8165d
Compare
done |
Screenrecorder-2024-07-02-20-07-37-863.mp4 |
Screenrecorder-2024-07-02-20-06-46-612.mp4 |
Screenrecorder-2024-07-02-20-22-10-110.mp4 |
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.
critical issues
fixed probvideo.webm |
Fixed counter.webm |
Fixed issue3.webm |
|
|
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.
IMO, we should change compileSdkVersion
to 34
to make video works
User story
Demo (android 34)
34.webm
Demo (android 33)
Screen_recording_20240603_211703.webm
Demo (android 28)
28.webm
Demo (android 27)
27.webm
Camera permission demo
permission_cam.webm
Audio recording permission demo
recper.webm
Open settings when permission is permantly denied
openSettings.webm