Skip to content

Commit b113869

Browse files
committed
update quantity video
1 parent 73a04df commit b113869

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

example/src/App.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,7 @@ import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
55
import MultipleImagePicker from '@baronha/react-native-multiple-image-picker';
66

77
export default function App() {
8-
const [images, setImages] = useState([
9-
{
10-
FileId: '4844',
11-
FileName:
12-
'https://dev.pety.vn/files/images/2091.1614509942.kitten---4216.mp4',
13-
FileThumbnail:
14-
'https://dev.pety.vn/files/images/thumbs/2091.1614509942.kitten---4216.mp4.jpg',
15-
IsImage: '0',
16-
IsVideo: '1',
17-
Name: 'Kitten - 4216.mp4',
18-
PostId: '4841',
19-
idx: 0,
20-
path:
21-
'https://dev.pety.vn/files/images/thumbs/2091.1614509942.kitten---4216.mp4.jpg',
22-
url: 'https://dev.pety.vn/files/images/2091.1614509942.kitten---4216.mp4',
23-
},
24-
]);
8+
const [images, setImages] = useState([]);
259

2610
const openPicker = async () => {
2711
try {

ios/MultipleImagePicker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class MultipleImagePicker: NSObject, TLPhotosPickerViewControllerDelegate,UINavi
240240
group.enter()
241241
let asset = TLAsset.phAsset
242242
let index = TLAsset.selectedOrder - 1;
243-
TLAsset.tempCopyMediaFile(videoRequestOptions: nil, imageRequestOptions: imageRequestOptions, livePhotoRequestOptions: nil, exportPreset: AVAssetExportPresetMediumQuality, convertLivePhotosToJPG: true, progressBlock: { (Double) in
243+
TLAsset.tempCopyMediaFile(videoRequestOptions: nil, imageRequestOptions: imageRequestOptions, livePhotoRequestOptions: nil, exportPreset: AVAssetExportPresetHighestQuality, convertLivePhotosToJPG: true, progressBlock: { (Double) in
244244

245245
}, completionBlock: { (filePath, fileType) in
246246
let object = NSDictionary(dictionary: self.createAttachmentResponse(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@baronha/react-native-multiple-image-picker",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"description": "react-native-multiple-image-picker enables application to pick images and videos from multiple smart album in iOS/Android, similar to the current facebook app.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let defaultOptions = {
3636
usedCameraButton: true,
3737
allowedVideo: true,
3838
allowedPhotograph: true, // for camera : allow this option when you want to take a photos
39-
allowedVideoRecording: false, //for camera : allow this option when you want to recording video.
39+
allowedVideoRecording: true, //for camera : allow this option when you want to recording video.
4040
maxVideoDuration: 60, //for camera : max video recording duration
4141
numberOfColumn: 3,
4242
maxSelectedAssets: 20,

0 commit comments

Comments
 (0)