fix: Set mimetype for video player on web
This commit is contained in:
parent
2e22f8b2c4
commit
dd1e2f34d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue