Skip to content

Commit fe5e0fe

Browse files
Makapredanielroek
authored andcommitted
[image_picker_for_web] Safari now can pick more video formats (3gp, mp4, possibly others...) (flutter#3007)
1 parent 95d8ed9 commit fe5e0fe

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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)