fix: Set mimetype for video player on web

This commit is contained in:
Christian Kußowski 2026-02-03 09:22:44 +01:00
parent 2e22f8b2c4
commit dd1e2f34d3
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -64,7 +64,7 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
// Create the VideoPlayerController from the contents of videoFile.
if (kIsWeb) {
final blob = html.Blob([videoFile.bytes]);
final blob = html.Blob([videoFile.bytes], videoFile.mimeType);
final networkUri = Uri.parse(html.Url.createObjectUrlFromBlob(blob));
videoPlayerController = VideoPlayerController.networkUrl(networkUri);
} else {