From 021fe9412e9661ce07b5e05e10bf5b8a42b98af5 Mon Sep 17 00:00:00 2001 From: Xu Han Date: Thu, 14 Sep 2023 15:26:26 +0800 Subject: [PATCH] use public images as sample video --- app/frontend/src/component/resource/MutateVideo.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/frontend/src/component/resource/MutateVideo.tsx b/app/frontend/src/component/resource/MutateVideo.tsx index 8a0ee58..1a4abea 100644 --- a/app/frontend/src/component/resource/MutateVideo.tsx +++ b/app/frontend/src/component/resource/MutateVideo.tsx @@ -16,11 +16,10 @@ frame_0002_url frame_0003_url ...`; -const sampleVideoUrls = `/app/image/example/driving/driving-0000051.jpg -/app/image/example/driving/driving-0000052.jpg -/app/image/example/driving/driving-0000053.jpg -/app/image/example/driving/driving-0000054.jpg -/app/image/example/driving/driving-0000055.jpg`; +const sampleVideoUrlHost = 'https://nutsh-public.s3.eu-central-1.amazonaws.com/demo/video/driving'; +const sampleVideoUrls = Array.from({length: 100}) + .map((_, i) => `${sampleVideoUrlHost}/intersection-${(i + 51).toString().padStart(7, '0')}.jpg`) + .join('\n'); const CreateForm = forwardRef((formProps, ref) => { const [form] = Form.useForm();