Skip to content

Conversation

@Ortes
Copy link
Contributor

@Ortes Ortes commented Apr 1, 2025

This PR adds support for the poster attribute on web by introducing a poster field in VideoPlayerWebOptions. It allows setting a thumbnail image for videos using the native HTML5 poster property, improving the out-of-the-box web experience.

This PR is is the changes to platform_interface for this one

Solve this issue:
flutter/flutter#166232

Pre-Review Checklist

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

Footnotes

  1. 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

@Ortes Ortes requested a review from tarrinneal as a code owner April 1, 2025 20:29
@Ortes Ortes changed the title [video_player] Add poster attribute for html video tag in video_player_plateform_interface [video_player] Add poster attribute for html video tag in video_player_platform_interface Apr 1, 2025
@stuartmorgan-g stuartmorgan-g marked this pull request as draft April 2, 2025 14:04
@stuartmorgan-g stuartmorgan-g removed the request for review from tarrinneal April 2, 2025 14:04
@stuartmorgan-g
Copy link
Collaborator

Marking as a draft since, per the documented process, the creation of this PR should happen only after the combined PR has been approved.

@Ortes Ortes force-pushed the video-player-html-poster-support-platform-interface branch 2 times, most recently from d826058 to 57ce8ae Compare April 2, 2025 16:52
@Piinks
Copy link
Contributor

Piinks commented Jun 4, 2025

Greetings from stale PR triage 👋, what is the status of this PR? Looking through it and the linked PRs we weren't sure.

@stuartmorgan-g stuartmorgan-g marked this pull request as ready for review June 24, 2025 18:45
@stuartmorgan-g
Copy link
Collaborator

@Ortes Is this updated to match the current state of #8979 ?

@Ortes Ortes force-pushed the video-player-html-poster-support-platform-interface branch from 2fcc43b to 2c94026 Compare June 25, 2025 06:59
@Ortes Ortes requested review from ditman and vashworth as code owners June 25, 2025 06:59
@Ortes Ortes force-pushed the video-player-html-poster-support-platform-interface branch from 2c94026 to 0eb6f78 Compare June 25, 2025 07:49
@Ortes
Copy link
Contributor Author

Ortes commented Jun 25, 2025

@Ortes Is this updated to match the current state of #8979 ?

Yes all fine,

Sorry for the mess I made while trying to rebase

@stuartmorgan-g stuartmorgan-g requested review from tarrinneal and removed request for ditman and vashworth June 25, 2025 17:57
@Ortes
Copy link
Contributor Author

Ortes commented Jun 25, 2025

Thanks for the review @stuartmorgan-g hopefully it is all fixed

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM

@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 26, 2025
@auto-submit auto-submit bot merged commit 5eb36be into flutter:main Jun 29, 2025
78 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jun 30, 2025
flutter/packages@4841ada...471bfd3

2025-06-30 [email protected] [google_maps_flutter] Remove legacy
renderer tests (flutter/packages#9517)
2025-06-30 49699333+dependabot[bot]@users.noreply.github.com Bump
lewagon/wait-on-check-action from 1.3.4 to 1.4.0 in the
all-github-actions group (flutter/packages#9524)
2025-06-29 [email protected]
[camera_android_camerax] Fix incorrectly rotated captured photos
(flutter/packages#9498)
2025-06-29 [email protected] [in_app_purchase] Annotate
deprecation in test (flutter/packages#9473)
2025-06-29 [email protected] [video_player] Add poster attribute for
html video tag in video_player_platform_interface
(flutter/packages#8979)
2025-06-29 [email protected] Roll Flutter (stable) from
6fba244 to fcf2c11 (6 revisions) (flutter/packages#9502)
2025-06-29 [email protected] Skip test to unblock packages
(flutter/packages#9516)

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
mboetger pushed a commit to mboetger/flutter that referenced this pull request Jul 21, 2025
flutter/packages@4841ada...471bfd3

2025-06-30 [email protected] [google_maps_flutter] Remove legacy
renderer tests (flutter/packages#9517)
2025-06-30 49699333+dependabot[bot]@users.noreply.github.com Bump
lewagon/wait-on-check-action from 1.3.4 to 1.4.0 in the
all-github-actions group (flutter/packages#9524)
2025-06-29 [email protected]
[camera_android_camerax] Fix incorrectly rotated captured photos
(flutter/packages#9498)
2025-06-29 [email protected] [in_app_purchase] Annotate
deprecation in test (flutter/packages#9473)
2025-06-29 [email protected] [video_player] Add poster attribute for
html video tag in video_player_platform_interface
(flutter/packages#8979)
2025-06-29 [email protected] Roll Flutter (stable) from
6fba244 to fcf2c11 (6 revisions) (flutter/packages#9502)
2025-06-29 [email protected] Skip test to unblock packages
(flutter/packages#9516)

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
vashworth pushed a commit to vashworth/packages that referenced this pull request Jul 30, 2025
…r_platform_interface (flutter#8979)

This PR adds support for the poster attribute on web by introducing a poster field in VideoPlayerWebOptions. It allows setting a thumbnail image for videos using the native HTML5 poster property, improving the out-of-the-box web experience.

This PR is is the changes to platform_interface for this [one](flutter#8940)

Solve this issue:
flutter/flutter#166232

## Pre-Review Checklist

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
lucaantonelli pushed a commit to lucaantonelli/flutter that referenced this pull request Nov 21, 2025
flutter/packages@4841ada...471bfd3

2025-06-30 [email protected] [google_maps_flutter] Remove legacy
renderer tests (flutter/packages#9517)
2025-06-30 49699333+dependabot[bot]@users.noreply.github.com Bump
lewagon/wait-on-check-action from 1.3.4 to 1.4.0 in the
all-github-actions group (flutter/packages#9524)
2025-06-29 [email protected]
[camera_android_camerax] Fix incorrectly rotated captured photos
(flutter/packages#9498)
2025-06-29 [email protected] [in_app_purchase] Annotate
deprecation in test (flutter/packages#9473)
2025-06-29 [email protected] [video_player] Add poster attribute for
html video tag in video_player_platform_interface
(flutter/packages#8979)
2025-06-29 [email protected] Roll Flutter (stable) from
6fba244 to fcf2c11 (6 revisions) (flutter/packages#9502)
2025-06-29 [email protected] Skip test to unblock packages
(flutter/packages#9516)

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
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 p: video_player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants