-
Notifications
You must be signed in to change notification settings - Fork 755
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
Add in-app camera #6763
base: develop
Are you sure you want to change the base?
Add in-app camera #6763
Conversation
Thanks for the PR. |
works fine in my Fork! |
Use VectorCameraOutput
Signed-off-by: sim <[email protected]>
78517e3
to
8236a32
Compare
Rebased (& fix the fragment) |
@DoM1niC : Here is the orientation support :) |
I think it looks OK now, so it is ready for review :) |
Thanks for the review !
That's needed for the video record, I guess you already gave the authorization for the camera so you have received the single last request. We can change the behavior to ask for this permission only once the user try to record a video.
Can you give a screenshot of it ? It will help to see what's wrong. There was an issue with the orientationListener being enabled onCreate instead of onStart, it was probably because of that.
The UX is inspired from Open Camera. We can change for another one (edit: cf note behind)
Good idea, and done :) Edit: Thanks to a long delay for my train, I've implement another UX : photo on click and video on longclick + flash for video, |
Start recording a video onLongClick
Oh, thanks for the explanation. I thought it was for video recording but I just looked closer and saw the arrow 😄. |
Use simpleActivityWaitingView, stop camera preview Remove unused executer
I have updated the screenshots on the first post |
Does it happen often/Do you have instruction to reproduce ? I don't have this version installed anymore right now |
I use your last Commits in my fork.... I just do a photo in portrait or landscape and the orientation still wrong for me... |
THX for the fix ae2a920 we need some resolve :( |
@p1gp1g can you resolve all issues from your current code ? THX 4 your Work!!!! |
|
Type of change
Content
This PR add a built-in / in-app camera to element as a lab feature. If the feature is not enable, it adds a button to attachment list to open the native camera for video.
Motivation and context
Currently, users have to choose between :
That means, it adds clicks to take a photo/video or users won't change media type (it requires to go to settings to change the default behavior).
This fixes #1389, #2224, #3331, #1623 and maybe others.
Screenshots / GIFs
Outdated screenshots
Tested devices
Checklist