added player config

This commit is contained in:
Oleg Yakovenko committed 2024-07-09 17:05:14 +03:00
1 parent 419eed81e6
commit 72ad5b3a21
3 files changed
+26 -19

No files matched your search

+10 -6
View File
@@ -105,12 +105,16 @@ export const DataStep = ({ nextStep }: DataStepProps) => {
"w-full border border-white bg-[#2B2B2B] px-[10px] py-[8px] text-sm"
}
>
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
url={rootStore.fileSrc}
/>
<ReactPlayer
playsinline={true}
controls={true}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={rootStore.fileSrc}
/>
</div>
)}
</FormLabel>
@@ -154,12 +154,15 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
"w-full border border-white bg-[#2B2B2B] px-[10px] py-[8px] text-sm"
}
>
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
url={rootStore.fileSrc}
/>
<ReactPlayer
playsinline={true}
controls={true}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={rootStore.fileSrc}
/>
</div>
)}
+7 -7
View File
@@ -66,13 +66,13 @@ export const ViewContentPage = () => {
</div>
)}
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
config={{}}
url={content?.data?.display_options?.content_url}
/>
<ReactPlayer
playsinline={true}
controls={true}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={content?.data?.display_options?.content_url}
/>
<section className={"flex flex-col"}>
<h1 className={"text-[20px] font-bold"}>