mirror of
https://github.com/krille-chan/fluffychat.git
synced 2026-02-06 21:15:58 +01:00
fix: Set mimetype for video player on web
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user