From 5871bb59a6e5097c7ed408da2c08260dab7ec48f Mon Sep 17 00:00:00 2001 From: Victor Dibia Date: Thu, 10 Oct 2024 14:50:53 -0700 Subject: [PATCH] add support for video type --- .../frontend/src/components/views/playground/metadata.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/apps/autogen-studio/frontend/src/components/views/playground/metadata.tsx b/samples/apps/autogen-studio/frontend/src/components/views/playground/metadata.tsx index e676b00be0..ff10e24ef1 100644 --- a/samples/apps/autogen-studio/frontend/src/components/views/playground/metadata.tsx +++ b/samples/apps/autogen-studio/frontend/src/components/views/playground/metadata.tsx @@ -28,7 +28,9 @@ const MetaDataView = ({ metadata }: { metadata: any | null }) => { const is_code = ["code"].includes(file.type); const is_csv = ["csv"].includes(file.type); const is_pdf = ["pdf"].includes(file.type); - const is_video = ["video"].includes(file.type); + const is_video = + ["video"].includes(file.type) || + ["mp4", "webm", "ogg"].includes(file.extension); const file_name = file.name || "unknown"; const file_path = file.path || "unknown";