Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 23 lines 638 B view raw
1import { 2 type ImagePickerAsset, 3 launchImageLibraryAsync, 4 UIImagePickerPreferredAssetRepresentationMode, 5} from 'expo-image-picker' 6 7import {VIDEO_MAX_DURATION_MS} from '#/lib/constants' 8 9export async function pickVideo() { 10 return await launchImageLibraryAsync({ 11 exif: false, 12 mediaTypes: ['videos'], 13 quality: 1, 14 legacy: true, 15 preferredAssetRepresentationMode: 16 UIImagePickerPreferredAssetRepresentationMode.Current, 17 videoMaxDuration: VIDEO_MAX_DURATION_MS / 1000, 18 }) 19} 20 21export const getVideoMetadata = (_file: File): Promise<ImagePickerAsset> => { 22 throw new Error('getVideoMetadata is web only') 23}