feat(chat): add inline video player component and modal viewer (#722) (#732)

* feat(chat): add inline video player component and modal viewer

Closes #722

* feat(chat): modernize video player with compact lock pill, save, and share

* refactor(chat): simplify inline video thumbnail to launch fullscreen player on tap

* fix(chat): pass session cookie and auth token headers to VideoView for protected media playback

* fix(chat): format unquoted cookie header for VideoView auth

* fix(chat): resolve video URLs via resolveImageUrl for gateway-hosted media
This commit is contained in:
M57 authored and GitHub committed 2026-08-01 00:47:26 +03:00
1 parent c3e026964c
commit 63b966b133
6 files changed
+580 -1

No files matched your search

@@ -35,6 +35,13 @@ data class Attachment(
uri.contains(".gif", ignoreCase = true) ||
uri.startsWith("data:image/gif", ignoreCase = true)
val isVideo: Boolean
get() =
mimeType.startsWith("video/") ||
fileExtension in listOf("mp4", "webm", "mkv", "mov", "avi", "3gp") ||
uri.contains(".mp4", ignoreCase = true) ||
uri.contains(".webm", ignoreCase = true)
val isGateway: Boolean
get() = source == AttachmentSource.GATEWAY