Skip to content
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

Added direct upload from video camera #12995

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timedin-de
Copy link

@timedin-de timedin-de commented May 9, 2024

Regarding feature request #7358

  • Adding Option to directly upload a video

  • If camera permissions are not already granted, it will ask if for video or image after granting (its seems not not to be possible to get the camera-action after the permission request)

  • It seems that the videointent doesn't work on emulator?

  • Tested successfull with a real GooglePixel 6a

  • Tests written, or not not needed

  • Update screenshots (DialogFragmentIT_testBottomSheet.png)

@timedin-de timedin-de changed the title Added upload from video camera #7358 Added upload from video camera May 9, 2024
@timedin-de timedin-de changed the title Added upload from video camera Added direct upload from video camera May 9, 2024
Copy link
Collaborator

@alperozturk96 alperozturk96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

I try to upload video directly on Android 14 emulator, after completing video shooting upload didn't work. The video file didn't upload.

After my second attempt, the app is crashed. Logcat didn't show any crash log for nextcloud package and general android

Could you test via Android 14 emulator and share your findings with us?

@timedin-de
Copy link
Author

timedin-de commented May 14, 2024

Thanks for the contribution.

I try to upload video directly on Android 14 emulator, after completing video shooting upload didn't work. The video file didn't upload.

After my second attempt, the app is crashed. Logcat didn't show any crash log for nextcloud package and general android

Could you test via Android 14 emulator and share your findings with us?

Thanks for testing, thats what i meant with "It seems that the videointent doesn't work on emulator?", I tried countless times using the videointent on an emulator and it crashes or exits. I currently have no idea why this happens. On a hardware phone (Pixel 6a) it just works... (i was unsure if it was maybe just my underpowered laptop, but this ensures the bug)

I'll try some tests with only video intents (outside of the nextcloup app) on emulator to check for the issue.

@timedin-de
Copy link
Author

Hey, I'm sorry, but I currently don't have the time (and motivation) to further check on this issue in the emulator. Maybe someone else finds the problem, or just discard the PR?

@alperozturk96
Copy link
Collaborator

Hey, I'm sorry, but I currently don't have the time (and motivation) to further check on this issue in the emulator. Maybe someone else finds the problem, or just discard the PR?

I'll check it. Thank you for your contribution; it's wonderful to see support from the community 👍

Signed-off-by: TimedIn <git@timedin.net>
Signed-off-by: TimedIn <git@timedin.net>
@JonasMayerDev
Copy link
Collaborator

For me, the PR seems to work on real device (One Plus running Android 12).

@JonasMayerDev
Copy link
Collaborator

JonasMayerDev commented May 21, 2024

What do you think of not having 2 different "upload from camera" in the Dialog Fragment but just one and then showing the user the dialog that's currently shown when accepting the permissions with the options video and image? I think the DialogFragment is already a little crowded, and it would make the experience a little more consistent since the dialog is currently only shown once regardless if "upload from camera" or "upload from video camera" is clicked...

@alperozturk96 @timedin-de What do you think?

@timedin-de
Copy link
Author

@timedin-de What do you think?

Yep I could do it this way if you agree on it.
It would mean one more click to open the camera, but i think would cause less confusion, (especially the current additional prompt after the permission granting).

I chose the current approach because of the comment in the issue
by @joshtrichards in #7358 (comment)

@JonasMayerDev
Copy link
Collaborator

@timedin-de thank you! I guess the best persons to decide on that is the design team @nextcloud/designers
To summarize for them:

Option 1 for adding a "capture video" implementation would look something like this:

image

Pro: One click video capture
Con: Too crowded dialog when clicking plus button, Inconsistent since dialog from option 2 would still show once when accepting video permissions.

Option 2 would look something like this:

Screenshot_2024-05-21-15-59-40-98_06ea656a9ba653ff96746f477f32d0f9

Pro: Consistent, less crowded
Con: 2 Clicks for video capture

@szaimen
Copy link
Contributor

szaimen commented May 22, 2024

Honestly I dont unterstand what is the difference between upload from camera and upload from video camera?

@timedin-de
Copy link
Author

Honestly I dont unterstand what is the difference between upload from camera and upload from video camera?

On Android when a camera gets started it needs to be specified if it should record a video or take a picture (you cant decide/change it inside of the camera preview).

So "video camera" starts in video-recording-mode, "camera" in photo-mode

@szaimen
Copy link
Contributor

szaimen commented May 22, 2024

I see. Then maybe rename the entries to Take a video and upload and Take a photo and upload ?

@JonasMayerDev
Copy link
Collaborator

JonasMayerDev commented May 22, 2024

@szaimen Yes good point. But the question is if we should even use 2 separate buttons (video and image) when clicking on the plus in the app. Or if we combine it in one button and the ask the user in a dialog if he wants video or image (prefered option for me and Alper). Take a look at my message for the pro and cons in my opinion: #12995 (comment)

Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants