Skip to content

Commit 5871bb5

Browse files
committed
add support for video type
1 parent 8bcb720 commit 5871bb5

File tree

1 file changed

+3
-1
lines changed
  • samples/apps/autogen-studio/frontend/src/components/views/playground

1 file changed

+3
-1
lines changed

samples/apps/autogen-studio/frontend/src/components/views/playground/metadata.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const MetaDataView = ({ metadata }: { metadata: any | null }) => {
2828
const is_code = ["code"].includes(file.type);
2929
const is_csv = ["csv"].includes(file.type);
3030
const is_pdf = ["pdf"].includes(file.type);
31-
const is_video = ["video"].includes(file.type);
31+
const is_video =
32+
["video"].includes(file.type) ||
33+
["mp4", "webm", "ogg"].includes(file.extension);
3234
const file_name = file.name || "unknown";
3335
const file_path = file.path || "unknown";
3436

0 commit comments

Comments
 (0)