Support video thumbnails
This commit is contained in:
parent
4e755ace36
commit
035069f505
4 changed files with 124 additions and 18 deletions
|
|
@ -41,6 +41,14 @@ export type AttachmentSendInfo = {
|
|||
randomTranslationY: number; // For UI effects
|
||||
};
|
||||
|
||||
export type AttachmentThumbnail = {
|
||||
data: Uint8Array;
|
||||
mimetype: string;
|
||||
size: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}
|
||||
|
||||
export type Attachment = {
|
||||
status: "loading" | "loaded";
|
||||
file: File;
|
||||
|
|
@ -51,6 +59,7 @@ export type Attachment = {
|
|||
src?: string;
|
||||
proof?: Proof;
|
||||
sendInfo?: AttachmentSendInfo;
|
||||
thumbnail?: AttachmentThumbnail;
|
||||
};
|
||||
|
||||
export type AttachmentBatch = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue