-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add gif support to web * rm set dimensions * rm effect from preview * rm log * rm use of {cause: error} * fix lint
- Loading branch information
Showing
9 changed files
with
183 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
ImagePickerAsset, | ||
launchImageLibraryAsync, | ||
MediaTypeOptions, | ||
UIImagePickerPreferredAssetRepresentationMode, | ||
} from 'expo-image-picker' | ||
|
||
export async function pickVideo() { | ||
return await launchImageLibraryAsync({ | ||
exif: false, | ||
mediaTypes: MediaTypeOptions.Videos, | ||
quality: 1, | ||
legacy: true, | ||
preferredAssetRepresentationMode: | ||
UIImagePickerPreferredAssetRepresentationMode.Current, | ||
}) | ||
} | ||
|
||
export const getVideoMetadata = (_file: File): Promise<ImagePickerAsset> => { | ||
throw new Error('getVideoMetadata is web only') | ||
} |
Oops, something went wrong.