added player config

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

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>

View File

@ -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>
)}

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"}>