Skip to content

[video_player_web] Remove stale package:web tweaks#11820

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
faheemabbas766:video-player-web-remove-stale-web-tweaks
Jun 17, 2026
Merged

[video_player_web] Remove stale package:web tweaks#11820
auto-submit[bot] merged 3 commits into
flutter:mainfrom
faheemabbas766:video-player-web-remove-stale-web-tweaks

Conversation

@faheemabbas766

Copy link
Copy Markdown
Contributor

Removes stale package:web helper setters for disablePictureInPicture and disableRemotePlayback from video_player_web.

These APIs are available directly from package:web 1.0.0, so this updates the package's minimum supported web version to >=1.0.0 <2.0.0. The controlsList helper is intentionally kept because package:web does not expose it yet.

Fixes flutter/flutter#187430

Tests

dart run script/tool/bin/flutter_plugin_tools.dart analyze --packages video_player_web
dart run script/tool/bin/flutter_plugin_tools.dart test --packages video_player_web
flutter pub downgrade && dart analyze --fatal-infos
flutter test --platform=chrome

Notes

No new tests were added because this removes stale compatibility helpers and preserves the existing runtime calls. Existing package tests and lower-bound analysis pass.

The example/integration_test suite was not run locally because Flutter reported: Web devices are not supported for integration tests yet.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. This PR includes the required pubspec.yaml and CHANGELOG.md updates. No new tests were added because this is a compatibility-helper cleanup; existing tests and lower-bound analysis pass. 2

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the minimum supported version of package:web to 1.0.0 in pubspec.yaml and updates the changelog accordingly. It also removes obsolete extension methods and setters from pkg_web_tweaks.dart that are now natively supported in the updated package version. There are no review comments, and I have no feedback to provide.

@stuartmorgan-g stuartmorgan-g added the triage-web Should be looked at in web triage label Jun 2, 2026
@stuartmorgan-g stuartmorgan-g requested a review from mdebbar June 2, 2026 18:33

@mdebbar mdebbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up!

@mdebbar mdebbar added the CICD Run CI/CD label Jun 3, 2026
@stuartmorgan-g stuartmorgan-g self-requested a review June 9, 2026 18:16

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stuartmorgan-g stuartmorgan-g added the override: no versioning needed Override the check requiring version bumps for most changes label Jun 9, 2026
@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

Version override: This is a behavioral no-op, so doesn't need to be published.

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 9, 2026
@stuartmorgan-g stuartmorgan-g added the CICD Run CI/CD label Jun 9, 2026
@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 17, 2026
@auto-submit auto-submit Bot merged commit 4fd05e6 into flutter:main Jun 17, 2026
87 checks passed
pull Bot pushed a commit to Mattlk13/flutter that referenced this pull request Jun 18, 2026
…r#188171)

flutter/packages@6ce00a8...4fd05e6

2026-06-17 faheemabbas766@gmail.com [video_player_web] Remove stale
package:web tweaks (flutter/packages#11820)
2026-06-17 engine-flutter-autoroll@skia.org Roll Flutter from
3a0420c to b10d0f1 (23 revisions) (flutter/packages#11928)
2026-06-17 hirotamu3@gmail.com [vector_graphics_compiler] Use
Abi.current() for engine-artifact lookup on Linux ARM64
(flutter/packages#11781)

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 flutter-ecosystem@google.com 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
LouiseHsu pushed a commit to LouiseHsu/flutter that referenced this pull request Jun 18, 2026
…r#188171)

flutter/packages@6ce00a8...4fd05e6

2026-06-17 faheemabbas766@gmail.com [video_player_web] Remove stale
package:web tweaks (flutter/packages#11820)
2026-06-17 engine-flutter-autoroll@skia.org Roll Flutter from
3a0420c to b10d0f1 (23 revisions) (flutter/packages#11928)
2026-06-17 hirotamu3@gmail.com [vector_graphics_compiler] Use
Abi.current() for engine-artifact lookup on Linux ARM64
(flutter/packages#11781)

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 flutter-ecosystem@google.com 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
via-guy pushed a commit to via-guy/flutter that referenced this pull request Jun 26, 2026
…r#188171)

flutter/packages@6ce00a8...4fd05e6

2026-06-17 faheemabbas766@gmail.com [video_player_web] Remove stale
package:web tweaks (flutter/packages#11820)
2026-06-17 engine-flutter-autoroll@skia.org Roll Flutter from
3a0420c to b10d0f1 (23 revisions) (flutter/packages#11928)
2026-06-17 hirotamu3@gmail.com [vector_graphics_compiler] Use
Abi.current() for engine-artifact lookup on Linux ARM64
(flutter/packages#11781)

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 flutter-ecosystem@google.com 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
rwrz added a commit to RealLifeGlobal/packages that referenced this pull request Jun 26, 2026
Resolves video_player conflicts between the fork's custom work and upstream:

- Pigeon API (video_player_instance_messages): union of the fork's ABR
  control (PlatformVideoQuality, getAvailableQualities/getCurrentQuality/
  setMaxBitrate/setMaxResolution) and upstream's video track selection
  (flutter#11476: MediaSelection/Asset/NativeVideoTrackData, getVideoTracks/
  selectVideoTrack). Generated .g.dart/.g.m/.g.h regenerated via pigeon.
- avfoundation_video_player.dart: kept both override sets.
- PlatformVideoView.java: took upstream's VideoSurfaceView fix (flutter#11416) and
  kept the fork's exoPlayer field used by dispose().
- pubspec.yaml (avf/web/example): kept path: dependency on the local
  video_player_platform_interface (fork has unpublished interface methods);
  took upstream version bump 2.10.0 and web: ^1.0.0.
- CHANGELOG: folded the fork's backgrounding-crash fix into 2.10.0.
- pkg_web_tweaks.dart: aligned with upstream (flutter#11820) to reduce divergence.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD override: no versioning needed Override the check requiring version bumps for most changes p: video_player platform-web triage-web Should be looked at in web triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[video_player_web] Remove stale package:web compatibility helpers

3 participants