fix: use processedFileName fallback for non-native format detection after processing

This commit is contained in:
SnapOtter
2026-06-15 14:49:30 +08:00
parent abaae18669
commit 14ded6fbd0
+1 -1
View File
@@ -666,7 +666,7 @@ export function ToolPage() {
} }
// Check if the current file is browser-playable // Check if the current file is browser-playable
const currentFileName = hasProcessed const currentFileName = hasProcessed
? (currentEntry?.processedFilename ?? "") ? (currentEntry?.processedFilename ?? processedFileName ?? "")
: (currentEntry?.file?.name ?? ""); : (currentEntry?.file?.name ?? "");
const currentExt = currentFileName.split(".").pop()?.toLowerCase() ?? ""; const currentExt = currentFileName.split(".").pop()?.toLowerCase() ?? "";
const nativeVideoExts = new Set(["mp4", "webm", "ogg", "ogv", "m4v", "mov"]); const nativeVideoExts = new Set(["mp4", "webm", "ogg", "ogv", "m4v", "mov"]);