Skip to content

[video_player_web] Add html 5 video poster support (thumbnail) as a VideoPlayerWebOptions #8978

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/video_player/video_player_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.3.5

* Add html 5 video poster support as a VideoPlayerWebOptions.

## 2.3.4

* Adjusts the code to the new platform interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ class VideoPlayer {
if (!options.allowRemotePlayback) {
_videoElement.disableRemotePlayback = true;
}

if (options.poster != null) {
_videoElement.poster = options.poster!;
}
}

void _resetOptions() {
Expand Down
4 changes: 2 additions & 2 deletions packages/video_player/video_player_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: video_player_web
description: Web platform implementation of video_player.
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.3.4
version: 2.3.5

environment:
sdk: ^3.4.0
Expand All @@ -21,7 +21,7 @@ dependencies:
sdk: flutter
flutter_web_plugins:
sdk: flutter
video_player_platform_interface: ^6.3.0
video_player_platform_interface: ^6.3.1
web: ">=0.5.1 <2.0.0"

dev_dependencies:
Expand Down