fix: Set mimetype for video player on web
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled

This commit is contained in:
Christian Kußowski
2026-02-03 09:22:44 +01:00
parent 2e22f8b2c4
commit dd1e2f34d3

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 {