Send and play videos in chats

- the attach button accepts one video per message (MP4, MOV, WebM, 3GP);
  type, size (100 MB) and duration (60 s) are checked before upload
- the video is uploaded straight to storage with a progress indicator,
  then confirmed; the message shows "processing" until the server pushes
  the ready (or failed) version over WebSocket
- player with poster and duration in bubbles; fresh links when they expire
- chat list preview shows "Video" for video-only messages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SlimusMinus
2026-10-28 23:00:18 +03:00
parent 0e3cac62a4
commit b94ef2918c
11 changed files with 488 additions and 31 deletions

View File

@@ -221,6 +221,15 @@
"removePhoto": "Убрать фото",
"openPhoto": "Открыть фото",
"tooManyPhotos": "Не больше {{max}} фото в одном сообщении",
"videoPreview": "Видео",
"attachMedia": "Прикрепить фото или видео",
"videoProcessing": "Видео обрабатывается…",
"videoFailed": "Не удалось обработать видео",
"videoSendError": "Не удалось отправить видео",
"videoSeparately": "Видео отправляется отдельным сообщением, без фото",
"videoBadType": "Этот формат видео не поддерживается (нужен MP4, MOV, WebM или 3GP)",
"videoTooLarge": "Видео больше {{max}} МБ",
"videoTooLong": "Видео длиннее {{max}} секунд",
"postInfo": "Объявление этого чата",
"postRemoved": "Объявление удалено",
"postClosed": "Закрыто",