-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Migrate to media3 and Immersive mode for video playback #11936
Conversation
Hi, Let me know what do you think and if it needs some polishing. Thanks! |
8b964b1
to
de32b9c
Compare
de32b9c
to
783a2dd
Compare
Works as expected on my end. One minor observation: when in light mode and playing a video file, the background and action bar remain white, which looks a bit odd. I'm not sure how, or even if, this was handled before... |
@ZetaTom Yes, the white background does not look nice.So, I think I will change the background color to black (for video only) so it shows black background instead of white. However the action bar has the same white color as it is in the current nextcloud app, so you are correct it's not handled. We can render the Preview Media(for both audio and video) Fragment as it gets rendered in dark mode? If yes, let me know I can try that and create a new PR (not adding here since that will populate the PR with too much different changes which should be standalone) This is how Google Drive's media playback UI looks like (in light mode) Record_2023-09-05-22-52-13.mp4For both video and audio playbacks it has default dark UI (for both light and dark mode) |
783a2dd
to
088d419
Compare
This is how it looks with background black (only done for videos) Record_2023-09-06-01-06-17.mp4 |
@parneet-guraya thanks a lot for working on this migration. Can you please address the newly introduced lint errors? See https://www.kaminsky.me/nc-dev/android-lint/5531.html Thanks in advance, highly appreciate your contributions 🤩 |
Hi, @AndyScherzinger, I'm happy to contribute 😄
I'm not really sure about what binary compatibility they are referring to tell me if that is something concerning otherwise we can use the annotation as mentioned, although I did use the annotation I think I didn't do properly in a file that's why lint error, I fixed it and pushing again to see if the lint error goes. |
e741b81
to
be7de8a
Compare
Found out the status bar color is not applied when handling display cutout in the |
b61f894
to
c1165ff
Compare
d566cea
to
184294d
Compare
Signed-off-by: parneet-guraya <[email protected]>
which used to make the user open drawer from the left (drawer is no longer available from the fragment so it's unusable). Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: parneet-guraya <[email protected]>
8cf7f61
to
1b797af
Compare
@alperozturk96 Done 👍 |
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
Show resolved
Hide resolved
Signed-off-by: parneet-guraya <[email protected]>
Signed-off-by: alperozturk <[email protected]>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11936.apk |
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 as expected for me :)
Hello there, 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! |
Closes: #11829
What this PR includes?
Before
Before.mp4
After
After.mp4