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": "Remove photo",
"openPhoto": "Open photo",
"tooManyPhotos": "No more than {{max}} photos per message",
"videoPreview": "Video",
"attachMedia": "Attach photo or video",
"videoProcessing": "Processing video…",
"videoFailed": "Could not process the video",
"videoSendError": "Could not send the video",
"videoSeparately": "A video is sent as a separate message, without photos",
"videoBadType": "Unsupported video format (use MP4, MOV, WebM or 3GP)",
"videoTooLarge": "Video is larger than {{max}} MB",
"videoTooLong": "Video is longer than {{max}} seconds",
"postInfo": "Listing for this chat",
"postRemoved": "Listing deleted",
"postClosed": "Closed",