-
Notifications
You must be signed in to change notification settings - Fork 460
Add missing media3 Stub OnPositionDiscontinuity
back to Android Med…
#2825
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
Add missing media3 Stub OnPositionDiscontinuity
back to Android Med…
#2825
Conversation
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.
Pull Request Overview
This PR adds back a missing media3 stub method OnPositionDiscontinuity
to the Android MediaManager class that was previously removed due to compatibility issues. The change addresses issue #2824 by restoring the stub implementation that handles position discontinuity events in media playback.
- Adds the
OnPositionDiscontinuity
stub method to maintain interface compliance with media3 APIs
Introduced a new method `OnMetadata(Metadata? metadata)` to handle updates related to media metadata in the MediaManager.android.cs file.
Is there any update or timeline on when this might be getting merged and the nuget updated? Getting it functional would be very helpful. Thanks for your help. @bijington is there anything else that needs to be done for it? |
@jonmdev i don't know. I'm concerned by this statement
@ne0rrmatrix What is the status of this? Do you believe this is tested enough to move forward? |
I think we should move forward with this PR. It will solve many issues and bug reports that we have had. |
how do i get this into my app based on .net9 maui? |
@ne0rrmatrix if it has been approved (2 weeks ago) what needs to happen next to get it into an updated nuget release so we can consume it normally? Currently any project with media element just crashes constantly in Android due to this issue. Even on open and close or rewind as this all triggers a position discontinuity. This is a needed fix to make it usable on Android. |
Description of Change
Add missing media3 Stub
OnPositionDiscontinuity
back to Android MediaManager classPR Classification
New feature to enhance media playback handling.
PR Summary
This pull request introduces a new method to improve the media manager's ability to respond to playback position changes.
MediaManager.android.cs
: Added theOnPositionDiscontinuity
method with parameters for old and new positions and a reason.Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information
This is the last Stub I had forgotten to add back. There was a specific reason why I removed it. dotnet/android-libraries#929 & dotnet/android-libraries#949
There are issues with having it and not having this specific stub in media element. I am not sure exactly what issues it will generate by adding it back now. It may cause no problem for developers. But I do remember that it was excluded for a reason that caused actual issues for some people. I don't remember what issues as it was a while back.