-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 #4157
Comments
Hi @parneet-guraya! Nice to see you again over here! 😃 |
Nice to see you here too 😃, Working on it 🚀. |
Hi @JuancaG05, hope you're doing fine. So, I was working on the migration and it was successful. But I would like you to read this first nextcloud/android#11977 (comment) ignore the specific file names mentioned there). I had pushed a PR regarding migration in the nextcloud's android client and had some question which are same for migration in owncloud's client. You can also see the migration I did there If you want to see how would Immersive mode look like if you want.
So, do let me know what you think about having a single activity for media playback? |
Hi @parneet-guraya! Let's see if I can reply to your questions. About the first question: I'm not very familiarised with the Media UI concepts, what do you mean with cut-out mode? And what effect would it have in other non-media previews? Could you post some screenshots to see it more visually? About the second question: if you were trying and couldn't get what Google Drive has, it's ok, I saw the before and after videos of your PR and they look great! 💯 When you have it for ownCloud, it would be so cool if you posted some videos as well! Thanks a lot for your contributions, we're very happy with them 😺😍 |
Thanks @JuancaG05, appreciate your feedback 😄 and yes surely would put a demo of before and after. So, In order to have Immersive mode smoothly In/out. It needs (best practices for handling display cutout) to have either Yes, we can go with |
Hi @parneet-guraya! I was taking a look and it seems that some of the media preview fragments are in Java, and others are already in Kotlin. I think it's a great opportunity to kotlinize those classes, but on the other hand I see this could be a little bit complex. If I understood well, your idea is refactoring and moving the I see these two classes have much different content between them, and maybe trying to unify them is tricky since we'll have a very big new activity, which is not the aim, the architecture we follow says it's good to separate concerns and keep things simple. The solution I can think of is creating a new activity, parallel to What do you think about this proposal? 🤔 Maybe I'm missing something in the solution you suggest and that's why I see it too complex, so just let me know 😀. BTW, after taking a look at some other apps, I see Thanks a lot again for your involvement with the app! 🥇 |
Hey @parneet-guraya! Yes sorry, I meant the audio fragment when I talked about the image fragment in my previous comment (ExoPlayer is used for audio and video). About the activity structure I propose, just take a look at the And about YouTube, I meant in the full screen video mode, something like this: PXL_20230927_130100545.TS.mp4In this case we can see that the notch area is being used to display the video as well, so it doesn't seem to be a |
So, making sure If we're on the same page. You are talking about having a
And If I consider the above, yes, audio does not need to have a cutout mode (unless required to show the audio playback UI in a certain way). Primarly Video playback needs it for the going fullscreen. So, does that mean we should have a single Activity just for video (for ex:
Also, this is talking more about refactoring the code and having the duplicated logic in one file. Which indeed would happen if we go with |
Yes, I would go with this approach to make it simpler. Let's create a |
Okay, great. Should I make that migration to activity in a separate PR first or keep it in the media migration? |
Since it is finally just one activity, I would make everything in a same PR, not too complex to separate it in 2 different PR, I think I'll be able to review it properly 👍 |
Some stuff affected in this PR that could be good to QA, in addition to the core feature (video play):
|
Media3 is the new home for Exoplayer and it is recommended to migrate to it. Exoplayer is now the part of this library.
Let me know about this and assign this to me, I will do it.
The text was updated successfully, but these errors were encountered: