perf(canvas): 画布媒体 - 优化媒体加载、播放器与节点交互 (#357)

Merge origin/main at fb089b2 and retain canvas media performance, player layout, and interaction updates.

Co-authored-by: ddCat <2695092045@qq.com>
This commit is contained in:
wurendao007
2026-08-31 09:00:37 +08:00
committed by GitHub
parent 21facff923
commit 8ebceecbb6
58 changed files with 2662 additions and 207 deletions

View File

@@ -194,6 +194,14 @@ export type CanvasNodeMetadata = {
};
content?: string;
previewContent?: string;
videoPreview?: {
content: string;
storageKey?: string;
width?: number;
height?: number;
bytes?: number;
mimeType?: string;
};
richText?: Record<string, unknown>;
composerContent?: string;
prompt?: string;
@@ -244,6 +252,8 @@ export type CanvasNodeMetadata = {
mimeType?: string;
bytes?: number;
durationMs?: number;
/** Whether the video file contains an audio track when this is known. */
hasAudio?: boolean;
assetId?: string;
assetTags?: string[];
assetCategory?: "character" | "environment" | "wardrobe" | "prop" | "weapon" | "style" | "other";