-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[video_player_android] Modify to use handlesCropAndRotation
to detect the SurfaceTexture
Impeller backend
#9107
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
base: main
Are you sure you want to change the base?
Conversation
handlesCropAndRotation
to detect the SurfaceTexture Impeller backendhandlesCropAndRotation
to detect the SurfaceTexture
Impeller backend
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.
lgtm w/ nits
...android/android/src/main/java/io/flutter/plugins/videoplayer/texture/TextureVideoPlayer.java
Outdated
Show resolved
Hide resolved
eventListener = new TextureExoPlayerEventListener(mockExoPlayer, mockCallbacks); | ||
@Test | ||
@Config(maxSdk = 21) | ||
public void onPlaybackStateChangedReadySendInitialized_belowAndroid21() { |
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.
nit: this is actually exactly Android21 right, not below?
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.
I think this is right because we are testing the sdk <= 21 case, but if I'm missing something, let me know!
…va/io/flutter/plugins/videoplayer/texture/TextureVideoPlayer.java Co-authored-by: Gray Mackall <[email protected]>
Changes SDK version check to a call to
SurfaceProducer.handlesCropAndRotation
to determine which Impeller backend is used for theTexture
based video player and thus, what rotation correction to apply to correct the rotation of the video.Fixes flutter/flutter#157198.
Pre-Review Checklist
[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3