Skip to content

Commit 818c5e6

Browse files
committed
Fix poster attribute assignment in video_player_web to ensure it is a string
1 parent ae53214 commit 818c5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/video_player/video_player_web/lib/src/video_player.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class VideoPlayer {
264264
}
265265

266266
if (options.poster != null) {
267-
_videoElement.poster = options.poster!;
267+
_videoElement.poster = options.poster!.toString();
268268
}
269269
}
270270

0 commit comments

Comments
 (0)