-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Convert use of mini_player
in the video_player_android
test to AndroidVideoPlayer
.
#7847
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
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.
Looks good just a question about a removed test.
asset: _videoAssetKey, | ||
)))!; | ||
|
||
testWidgets('can be paused', (WidgetTester tester) async { |
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.
Should we add back a test for pausing like this one that was removed?
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.
F. Yup, that was a booboo - re-added. Thanks for calling this out! Done.
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.
Looks like there was an additional call to await tester.pumpAndSettle(_playDuration)
after pause was called in the original test. Maybe that explains the slight difference in player.getPosition(textureId)
and pausedDuration
causing the test failure?
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.
Hmm, let's try it :)
Thanks @camsim99! PTAL again |
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 but there's a test failure. Left a comment on maybe why
asset: _videoAssetKey, | ||
)))!; | ||
|
||
testWidgets('can be paused', (WidgetTester tester) async { |
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.
Looks like there was an additional call to await tester.pumpAndSettle(_playDuration)
after pause was called in the original test. Maybe that explains the slight difference in player.getPosition(textureId)
and pausedDuration
causing the test failure?
…test to `AndroidVideoPlayer`. (flutter/packages#7847)
flutter/packages@bf751e6...a35f02d 2024-10-15 [email protected] Convert use of `mini_player` in the `video_player_android` test to `AndroidVideoPlayer`. (flutter/packages#7847) 2024-10-15 [email protected] [interactive_media_ads] Adds internal wrapper for Android native `UniversalAdId` (flutter/packages#7833) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#156983) flutter/packages@bf751e6...a35f02d 2024-10-15 [email protected] Convert use of `mini_player` in the `video_player_android` test to `AndroidVideoPlayer`. (flutter/packages#7847) 2024-10-15 [email protected] [interactive_media_ads] Adds internal wrapper for Android native `UniversalAdId` (flutter/packages#7833) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Closes flutter/flutter#156424.
Also improved an error message that came up as a result.