Add MediaPicker to .NET MAUI Community Toolkit #233
Replies: 6 comments 24 replies
-
@jfversluis Hi. I was planning to move MediaGallery to As I said before, I don't see the point in moving |
Beta Was this translation helpful? Give feedback.
-
This is indeed true for you, but if we look at numbers the Toolkit has way more downloads than MediaGallery (674.5k vs 18k), for Xamarin that is, but I expect the same for .NET MAUI as soon as it's released. This definitely is no definite proof that all people that use the Toolkit also have MediaGallery installed, but chances are that they already have the Toolkit and can now eliminate another dependency; MediaGallery. And like I said earlier: I think you're overlooking the fact that developers working at enterprises feel much more comfortable with a library maintained by a team (and even Microsoft and the .NET Foundation) than a library that is maintained by just 1 person, in fact, some companies forbid the use of those libraries. Don't get me wrong, I am in no way saying that your library is bad or how you're doing things is bad, I mean, the fact that I'm even considering asking you to help us with this is meant to be a great compliment because I love the work that you do! The only thing I want to achieve is getting this code to as many people as possible and into .NET MAUI Essentials as fast and easy as possible. And as you have expressed, that is also something you want.
You still don't need to if we drop the MediaGallery .NET MAUI version and move that part to the Toolkit. Then you only have to maintain the Xamarin version and, if you still want, the .NET MAUI version but that only is on a different repository.
No argument there, but I think the Toolkit is an even better incubator. We already follow the same project structure as .NET MAUI so moving it will mostly be copy/paste. Developers using the MediaGallery or Toolkit then only need to change namespaces and not even that because of the net C# 10 templates we have, that should take care of that. And with the Toolkit we're closer to the people that are actually building .NET MAUI (Essentials). That means it's much easier in terms of moving it over and the timing of that. But, and don't mistake this for being rude, I feel that if I haven't convinced you by now I won't be able to convince you, which is fine. Just to be clear, that might mean (note: might, we haven't made a decision yet) that we still might move forward with this, just not with your help. In either case, I thank you for your input which is very insightful and of course; all the great work that you have done for the community and on the MediaGallery library! |
Beta Was this translation helpful? Give feedback.
-
@dimonovdd @jfversluis Hi! I read the whole discussion and I must say that I feel Dima's frustration. On the other hand I also share Gerald's opinion that the Community Toolkit would be a very good location for this package to be maintained. I often notice that 'we developers' start some package because we want to solve our problem and that of other developers. The first year goes super well, but after a while we are super busy, hired by some other company or taking a sabbatical because the work stress is affecting our health. Or for example: working on the next big upgrade (like now with Maui) and stop maintaining the first package. People start to complain, issues piling up, nothing gets done and people need to implement the same functionality themselves. For example the FirebasePushNotificationPlugin plugin didn't get releases for almost two years. Another reason: in Xamarin Forms it is recommended to have less packages for performance. If this is still the case in Maui this will also help to have it in MCT. Since MCT is maintained by the community and employees at Microsoft I guess it will get more love and attention than in a separate repo. By the way: MCT has 9.4K downloads now, and Xamarin.MediaGallery.Permision.Maui 5.5K (how can it be that it was so much in January but hardly increased?) Anyway @dimonovdd thanks for this package! I'm using it now. It was just a bit of a surprise that it didn't automatically fixed the photo orientation. I needed to solve that in my project myself. I will see if I can do a PR so that users at least can use the functionality when they migrate from Media.Plugin to MediaGallery. |
Beta Was this translation helpful? Give feedback.
-
Hello friends, So, this library and functionality will be really good and it will helps thousands of developers around the world. So, I'm wondering what did you decide for the future of this to support MAUI? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
Hi, I just fix Xamarin.MediaGallery plugin to make it work works for maui. Also current media picker is not good at all. what do you think? |
Beta Was this translation helpful? Give feedback.
-
Closed as part of base Dotnet MAUI - https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/device-media/picker?tabs=wi |
Beta Was this translation helpful? Give feedback.
-
Right now the media picker functionality is a bit all over the place. There is the original MediaPlugin by James, but as far as I know that is no longer maintained since no one stepped up.
That evolved into it being added to Xamarin.Essentials, but only the basic functionality made it over and with Essentials being in maintenance mode, we don't have the possibility to add anything to that anymore.
This all resulted into the great efforts of @dimonovdd who has created his Xamarin.MediaGallery plugin.
Personally I think this should be part of code .NET MAUI (Essentials) but the truth is we're not there for the upcoming GA version, so also that is sometime into the future.
In an effort to make this available to people as fast as possible while also having an easy transition path into core .NET MAUI, my proposal would be get proper media picker functionalities in the .NET MAUI Community Toolkit. That way we will have it around the same time that .NET MAUI lands and hopefully we will be able to transition it soon and easy to .NET MAUI itself.
I have already spoken to @dimonovdd a bit as he offered some help earlier. I hope we can still count on him and/or others to pitch in with this one. What are peoples thoughts? And what is stuff that should at least be in there? What is your wishlist from high priority to low?
Beta Was this translation helpful? Give feedback.
All reactions