Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/hooks/useResolveFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const handleFileOnLoad = (
}
case 'replay': {
const isGua = extractedFile.name.split('.')[2] === 'gz';

// gua 的文件后缀为 replay.gz
if (isGua) {
type = 'gua';
Expand Down Expand Up @@ -139,7 +138,7 @@ const handleFileOnLoad = (
type = 'cast';
try {
const decompressedData: Uint8Array = gunzipSync(new Uint8Array(extractedFile.buffer));

// 直接创建 Blob URL
const blob = new Blob([decompressedData], { type: 'application/octet-stream' });

Expand Down Expand Up @@ -196,7 +195,7 @@ const handleFileOnLoad = (
if (isGua) {
type = 'gua';
// @ts-ignore
const res = await handleGuaData(e.currentTarget?.result, fileName);
const res = await handleGuaData(e.currentTarget?.result, fileName, eventOptions);

if (res) {
videoUrl = res;
Expand Down