Skip to content

Commit 0007ce3

Browse files
authoredSep 9, 2020
[image_picker_for_web] Safari now can pick more video formats (3gp, mp4, possibly others...) (flutter#3007)

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
 

‎packages/image_picker/image_picker_for_web/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.1.0+2
2+
3+
* Adds Video MIME Types for the safari browser for acception
4+
15
# 0.1.0+1
26

37
* Remove `android` directory.

‎packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import 'package:image_picker_platform_interface/image_picker_platform_interface.
77

88
final String _kImagePickerInputsDomId = '__image_picker_web-file-input';
99
final String _kAcceptImageMimeType = 'image/*';
10-
// TODO The value below seems to not be enough for Safari (https://github.com/flutter/flutter/issues/58532)
11-
final String _kAcceptVideoMimeType = 'video/*';
10+
final String _kAcceptVideoMimeType = 'video/3gpp,video/x-m4v,video/mp4,video/*';
1211

1312
/// The web implementation of [ImagePickerPlatform].
1413
///

‎packages/image_picker/image_picker_for_web/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/i
44
# 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump
55
# the version to 2.0.0.
66
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7-
version: 0.1.0+1
7+
version: 0.1.0+2
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)
Please sign in to comment.