-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Video_Player] Remove the deprecated API reference. #3669
Conversation
It's deprecated in API 21, but the plugin supports building back to 16, so this will regress running on old versions. Can you explain the problem you are trying to solve? Are you using alternate build files with a newer target? |
This API has been removed entirely from the internal exoplayer library. So the internal plugin is diverged from the upstream one. But I'm not sure if it's safe to remove this reference in the upstream as you mentioned. I've talked with Chris. Chris suggest me to create a PR to get some feedback. We can handle this difference for now if this causes regression. |
Is it possible to catch |
Oh I see, I missed that this is ExoPlayer rather than Media player. So I think the question becomes, does the newer ExoPlayer API work down-level? |
I think so. Actually, the exoPlayer.setAudioStreamType API has been removed from the source. But I'm not familiar with the upstream dependencies. I may look at the wrong repo. https://github.com/google/ExoPlayer/blob/release-v2/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java |
Kindly ping. |
Can you link to documentation/source/discussion that supports this?
Is that because the new method works downlevel so isn't needed, or has the current version dropped support for older versions of Android? We need definitive confirmation that this isn't going to break the plugin for Android versions we still support before proceeding. |
setAudioStreamType internally use setAudioAttributes(AudioAttributes) which is also deprecated later and should use setAudioAttributes(AudioAttributes, boolean) instead. |
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.
Thanks, makes sense then! LGTM
* master: (49 commits) Prep for alignment with Flutter analysis options (flutter#3703) [google_maps_flutter_platform_interface] Mark constructors as const for ids (flutter#3718) [image_picker] Endorse image_picker_for_web (flutter#3717) Add missing licenses, and add a check (flutter#3720) [ci] Add libgcrypt to Docker image. (flutter#3711) Reorder the checkboxes in the PR template (flutter#3666) Re-endorse connectivity_for_web (flutter#3708) Fix missing declaration of windows' default_package (flutter#3705) Typos in comments (flutter#2846) Skip flutter upgrade for pod linting Cirrus task (flutter#3700) [cross_file] Delete. (flutter#3698) [tool] Improve check version ci so that it enforces the version in CHANGELOG and pubspec matches. (flutter#3678) Streamline CI setup, and reenable macOS credits (flutter#3697) [video_player] fixed misleading size and aspect ratio documentation (flutter#3668) [image_picker] Implemented 2860 and added Unit Test to test functionality (flutter#3685) [shared_preferences] Fix concurrent modification of the shared preferences on Android (flutter#3684) [extension_google_sign_in_as_googleapis_auth] Deleted. (flutter#3694) Skip pod lint tests (flutter#3692) [Video_Player] Remove the deprecated API reference. (flutter#3669) [google_sign_in] fix test(flutter#3690) ...
exoPlayer.setAudioStreamType has been deprecated. Remove it from the video_player plugin.
Doc: https://developer.android.com/reference/android/media/MediaPlayer#setAudioStreamType(int)
Pre-launch Checklist
[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.