diff options
author | Michael <michael.foiani@gmail.com> | 2021-07-02 15:46:25 -0400 |
---|---|---|
committer | Michael <michael.foiani@gmail.com> | 2021-07-02 15:46:25 -0400 |
commit | 1f834f858e8cdcb4114969867f491f97813076ee (patch) | |
tree | e73d383407ad0ba1b57e569286be2a2371518a30 /src | |
parent | 36a689d4f9d705a8cc6e1867eafbb959455c15d2 (diff) |
Fix small build issue.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/camera.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utils/camera.ts b/src/utils/camera.ts index f3705552..3da5feaa 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -63,6 +63,8 @@ export const navigateToVideoPicker = (callback: (vid: Video) => void) => { }) .then(async (vid) => { if (vid.path) { + ProcessingManager.compress(vid, options.compress) // like VideoPlayer compress options + .then((data: any) => console.log(data)); callback(vid); } }) @@ -73,6 +75,18 @@ export const navigateToVideoPicker = (callback: (vid: Video) => void) => { }); }; +const options = { + compress: { + width: 720, + height: 1280, + bitrateMultiplier: 3, + saveToCameraRoll: true, // default is false, iOS only + saveWithCurrentDate: true, // default is false, iOS only + minimumBitrate: 300000, + // removeAudio: true, // default is false + }, +}; + export const showGIFFailureAlert = (onSuccess: () => void) => Alert.alert( 'Warning', |