feat(video): полноценный просмотр видео — превью, стриминг, качество, перемотка

This commit is contained in:
klockky
2026-06-23 17:04:24 +03:00
parent 2b45bb3185
commit c4afc94a7d
4 changed files with 409 additions and 174 deletions
+5 -1
View File
@@ -121,6 +121,7 @@ class PhotoAttachment extends MessageAttachment {
class VideoAttachment extends MessageAttachment {
final int? videoId;
final String? videoToken;
final String? thumbnail;
final int? width;
final int? height;
final int? duration;
@@ -132,6 +133,7 @@ class VideoAttachment extends MessageAttachment {
super.fileUrl,
this.videoId,
this.videoToken,
this.thumbnail,
this.width,
this.height,
this.duration,
@@ -143,7 +145,8 @@ class VideoAttachment extends MessageAttachment {
previewData: decodeAttachPreview(map['previewData']),
baseUrl: map['baseUrl'] as String?,
videoId: map['videoId'] as int?,
videoToken: map['videoToken'] as String?,
videoToken: (map['token'] ?? map['videoToken'])?.toString(),
thumbnail: map['thumbnail'] as String?,
width: map['width'] as int?,
height: map['height'] as int?,
duration: map['duration'] as int?,
@@ -158,6 +161,7 @@ class VideoAttachment extends MessageAttachment {
'baseUrl': baseUrl,
'videoId': videoId,
'videoToken': videoToken,
'thumbnail': thumbnail,
'width': width,
'height': height,
'duration': duration,