diff --git a/src/lib/media/video/compress.web.ts b/src/lib/media/video/compress.web.ts index 34d69267d4..7f057d2ea5 100644 --- a/src/lib/media/video/compress.web.ts +++ b/src/lib/media/video/compress.web.ts @@ -3,9 +3,9 @@ import {ImagePickerAsset} from 'expo-image-picker' import {VideoTooLargeError} from 'lib/media/video/errors' import {CompressedVideo} from './types' -const MAX_VIDEO_SIZE = 1024 * 1024 * 100 // 100MB +const MAX_VIDEO_SIZE = 1024 * 1024 * 50 // 50mb -// doesn't actually compress, but throws if >100MB +// doesn't actually compress, converts to ArrayBuffer export async function compressVideo( asset: ImagePickerAsset, _opts?: { diff --git a/src/lib/media/video/errors.ts b/src/lib/media/video/errors.ts index 1c55a9ee9d..5d91758c71 100644 --- a/src/lib/media/video/errors.ts +++ b/src/lib/media/video/errors.ts @@ -1,6 +1,6 @@ export class VideoTooLargeError extends Error { constructor() { - super('Videos cannot be larger than 100MB') + super('Videos cannot be larger than 50mb') this.name = 'VideoTooLargeError' } } diff --git a/src/locale/locales/ca/messages.po b/src/locale/locales/ca/messages.po index 6d4620b097..645d87f396 100644 --- a/src/locale/locales/ca/messages.po +++ b/src/locale/locales/ca/messages.po @@ -7664,8 +7664,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "La política de privacitat ha estat traslladada a <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "El vídeo triat és més gran de 100MB." +msgid "The selected video is larger than 50MB." +msgstr "El vídeo triat és més gran de 50MB." #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." @@ -8605,8 +8605,8 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" -#~ msgstr "Els vídeos no poder ser de més de 100MB" +#~ msgid "Videos cannot be larger than 50MB" +#~ msgstr "Els vídeos no poder ser de més de 50MB" #: src/screens/Profile/Header/Shell.tsx:113 msgid "View {0}'s avatar" diff --git a/src/locale/locales/de/messages.po b/src/locale/locales/de/messages.po index 8f0e65aed9..16db631211 100644 --- a/src/locale/locales/de/messages.po +++ b/src/locale/locales/de/messages.po @@ -6965,7 +6965,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Die Datenschutzerklärung wurde nach <0/> verschoben" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7871,7 +7871,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/en/messages.po b/src/locale/locales/en/messages.po index 77d565ff1d..1c0283f59d 100644 --- a/src/locale/locales/en/messages.po +++ b/src/locale/locales/en/messages.po @@ -7039,7 +7039,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "" #: src/state/queries/video/video.ts:227 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7917,7 +7917,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/es/messages.po b/src/locale/locales/es/messages.po index 62ef7e4faa..c15a8aa6c4 100644 --- a/src/locale/locales/es/messages.po +++ b/src/locale/locales/es/messages.po @@ -6893,7 +6893,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "La Política de privacidad se ha trasladado a <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7763,7 +7763,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/fi/messages.po b/src/locale/locales/fi/messages.po index 7baed3d749..4b813a51b4 100644 --- a/src/locale/locales/fi/messages.po +++ b/src/locale/locales/fi/messages.po @@ -6989,7 +6989,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Tietosuojakäytäntö on siirretty kohtaan <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7863,7 +7863,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/fr/messages.po b/src/locale/locales/fr/messages.po index 67d1659074..bfe6cca7de 100644 --- a/src/locale/locales/fr/messages.po +++ b/src/locale/locales/fr/messages.po @@ -6486,7 +6486,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Notre politique de confidentialité a été déplacée vers <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7302,7 +7302,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "Les vidéos ne peuvent pas dépasser 100 Mo" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/ga/messages.po b/src/locale/locales/ga/messages.po index a80da430b0..9db62e3c87 100644 --- a/src/locale/locales/ga/messages.po +++ b/src/locale/locales/ga/messages.po @@ -7035,7 +7035,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Bogadh Polasaí na Príobháideachta go dtí <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7912,7 +7912,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/hi/messages.po b/src/locale/locales/hi/messages.po index b089315bcc..55105d5c07 100644 --- a/src/locale/locales/hi/messages.po +++ b/src/locale/locales/hi/messages.po @@ -7609,7 +7609,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "गोपनीयता नीति को <0/> पर स्थानांतरित किया गया है" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -8535,7 +8535,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/id/messages.po b/src/locale/locales/id/messages.po index f8dc789c94..7db727a91e 100644 --- a/src/locale/locales/id/messages.po +++ b/src/locale/locales/id/messages.po @@ -7040,7 +7040,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Kebijakan Privasi telah dipindahkan ke <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7914,8 +7914,8 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" -#~ msgstr "Video tidak boleh lebih besar dari 100MB" +#~ msgid "Videos cannot be larger than 50MB" +#~ msgstr "Video tidak boleh lebih besar dari 50MB" #: src/screens/Profile/Header/Shell.tsx:113 msgid "View {0}'s avatar" diff --git a/src/locale/locales/it/messages.po b/src/locale/locales/it/messages.po index 6c1d99f3d0..45a156441b 100644 --- a/src/locale/locales/it/messages.po +++ b/src/locale/locales/it/messages.po @@ -7321,8 +7321,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "La politica sulla privacy è stata spostata a <0/><0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "Questo video è più grande di 100MB." +msgid "The selected video is larger than 50MB." +msgstr "Questo video è più grande di 50MB." #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." @@ -8222,8 +8222,8 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" -#~ msgstr "I video non possono essere più grandi di 100MB" +#~ msgid "Videos cannot be larger than 50MB" +#~ msgstr "I video non possono essere più grandi di 50MB" #: src/screens/Profile/Header/Shell.tsx:113 msgid "View {0}'s avatar" diff --git a/src/locale/locales/ja/messages.po b/src/locale/locales/ja/messages.po index d5e3e8b6bb..61dc1394dd 100644 --- a/src/locale/locales/ja/messages.po +++ b/src/locale/locales/ja/messages.po @@ -6272,8 +6272,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "プライバシーポリシーは<0/>に移動しました" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "選択したビデオのサイズが100MBを超えています。" +msgid "The selected video is larger than 50MB." +msgstr "選択したビデオのサイズが50MBを超えています。" #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." diff --git a/src/locale/locales/ko/messages.po b/src/locale/locales/ko/messages.po index 89ecf5da5b..dc58cfac88 100644 --- a/src/locale/locales/ko/messages.po +++ b/src/locale/locales/ko/messages.po @@ -6272,8 +6272,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "개인정보 처리방침을 <0/>(으)로 이동했습니다" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "선택한 동영상이 100MB를 초과합니다." +msgid "The selected video is larger than 50MB." +msgstr "선택한 동영상이 50MB를 초과합니다." #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." diff --git a/src/locale/locales/pt-BR/messages.po b/src/locale/locales/pt-BR/messages.po index 7e4d621acc..c78ab40fc5 100644 --- a/src/locale/locales/pt-BR/messages.po +++ b/src/locale/locales/pt-BR/messages.po @@ -7039,7 +7039,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "A Política de Privacidade foi movida para <0/>" #: src/state/queries/video/video.ts:227 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "Vídeo selecionado é maior que 100 MB." #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7917,7 +7917,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "Vídeos não podem ter mais de 100 MB" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/ru/messages.po b/src/locale/locales/ru/messages.po index e480b6eecb..ac52f83ced 100644 --- a/src/locale/locales/ru/messages.po +++ b/src/locale/locales/ru/messages.po @@ -6237,7 +6237,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Политика конфиденциальности была перемещена в <0/>" #: src/state/queries/video/video.ts:188 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "Размер выбранного видео превышает 100МБ." #: src/screens/StarterPack/StarterPackScreen.tsx:713 diff --git a/src/locale/locales/tr/messages.po b/src/locale/locales/tr/messages.po index cc1799e43d..37f27c58e6 100644 --- a/src/locale/locales/tr/messages.po +++ b/src/locale/locales/tr/messages.po @@ -7498,7 +7498,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Gizlilik Politikası <0/> konumuna taşındı" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -8412,7 +8412,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/uk/messages.po b/src/locale/locales/uk/messages.po index 86c968bf49..f35d15ee59 100644 --- a/src/locale/locales/uk/messages.po +++ b/src/locale/locales/uk/messages.po @@ -7040,7 +7040,7 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "Політика конфіденційності була переміщена до <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." +msgid "The selected video is larger than 50MB." msgstr "" #: src/screens/StarterPack/StarterPackScreen.tsx:713 @@ -7914,7 +7914,7 @@ msgid "Video: {0}" msgstr "" #: src/view/com/composer/videos/state.ts:27 -#~ msgid "Videos cannot be larger than 100MB" +#~ msgid "Videos cannot be larger than 50MB" #~ msgstr "" #: src/screens/Profile/Header/Shell.tsx:113 diff --git a/src/locale/locales/zh-CN/messages.po b/src/locale/locales/zh-CN/messages.po index 7216cdda7c..ae4619c382 100644 --- a/src/locale/locales/zh-CN/messages.po +++ b/src/locale/locales/zh-CN/messages.po @@ -6272,8 +6272,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "隐私政策已迁移至 <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "选择的视频大小超过 100MB。" +msgid "The selected video is larger than 50MB." +msgstr "选择的视频大小超过 50MB。" #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." diff --git a/src/locale/locales/zh-TW/messages.po b/src/locale/locales/zh-TW/messages.po index 4c3920bbd7..aafbfc9c8d 100644 --- a/src/locale/locales/zh-TW/messages.po +++ b/src/locale/locales/zh-TW/messages.po @@ -6272,8 +6272,8 @@ msgid "The Privacy Policy has been moved to <0/>" msgstr "隱私政策已移動到 <0/>" #: src/state/queries/video/video.ts:222 -msgid "The selected video is larger than 100MB." -msgstr "選擇的影片檔案大小超過 100MB。" +msgid "The selected video is larger than 50MB." +msgstr "選擇的影片檔案大小超過 50MB。" #: src/screens/StarterPack/StarterPackScreen.tsx:713 msgid "The starter pack that you are trying to view is invalid. You may delete this starter pack instead." diff --git a/src/state/queries/video/video.ts b/src/state/queries/video/video.ts index b0485cca36..32d02a63cb 100644 --- a/src/state/queries/video/video.ts +++ b/src/state/queries/video/video.ts @@ -224,7 +224,7 @@ export function useUploadVideo({ } else if (e instanceof VideoTooLargeError) { dispatch({ type: 'SetError', - error: _(msg`The selected video is larger than 100MB.`), + error: _(msg`The selected video is larger than 50MB.`), }) } else { dispatch({