-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Support Android target level api 31 #866
Comments
@janwiebe-jump I've pulled your exoplayer work in and done a release, but it seems the SimpleExoplayer class, or the new ExoPlayer.Builder are removed from the bindings because of an error. I couldn't find a fix yet, but if you can i will release an update for it and for MediaManager. |
Hello @martijn00, Is there anything new regarding API Level 31 support? Is there already an update planned? |
Hello @martijn00, I've made a Pull Request that should fix the issues with ExoPlayer, could you pull this and make a release? |
Yes, i'll do it as soon as i get a chance. |
Hi @martijn00 , is it possible to get a new release with these changes included? |
There are more changes required to support the latest exoplayer. Feel free to make a PR! |
I’d be happy to give it a shot, how much needs to be done? Having a look it seems the logging provider needs to be swapped out at the very least, is there much else beyond that? |
I'm using version 1.1.1 and it can work with Android 12, however I noticed that it doesn't create player in notification manager like previous versions, this results in audio only being playable in background about 15-30m and then will be stopped. Is it a problem related to the latest ExoPlayer? |
@BenDTU I've updated to .net6 but there are some build errors remaining. Can you try to get it building? |
@martijn00 I'm seeing lots of errors relating to .Net 6, I assume other components XamarinMediaManager relies on aren't ready for that upgrade - I wouldn't know where to start to get that up to speed. |
@BenDTU I'll work on replacing Forms with MAUI. Exoplayer is already updated to .net6 so if you can update the implementation of that? |
@martijn00 I can give it a shot when I have a chance, though I don't know how I'll go. |
@BenDTU I've updated MAUI support and made it build. Just the sample doesn't work and there are some todo's |
@martijn00 so this new version will no longer support Xamarin right? |
Player not loaded, notification not displayed also even with the android 12 patch branch and also with the android 12 2023 branch !!! here is the error I'm getting :
|
🏗 Enhancement Proposal
As of August 31 all new apps must be at SDK target API level 31. Updates for existing apps have to be at level 31 as of November 2022 as stated here.
However, currently the MediaManager plugin doesn't support API level 31, mostly due to the dependency on ExoPlayer.Xamarin which binds against an older version of ExoPlayer that is not yet API level 31 ready. It uses the older way of creating the notification intent, without the correct
PendingIntentFlags
.I have started the upgrade to the first version of ExoPlayer that supports Android 12 (version 2.14.2) on my fork
I got stuck updating the examples. Contributions welcome.
This might be a first start to get the MediaManager up to date and to help progress into a MAUI compatible library.
Pitch
Update the MediaManager to API level 31 to keep it in line with current Google Play requirements.
Platforms affected (mark all that apply)
The text was updated successfully, but these errors were encountered: