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" "w-full border border-white bg-[#2B2B2B] px-[10px] py-[8px] text-sm"
} }
> >
<ReactPlayer <ReactPlayer
playsinline={true} playsinline={true}
controls={true} controls={true}
width={"100%"} width="100%"
url={rootStore.fileSrc} config={{ file: { attributes: { playsInline: true } } }}
/> url={rootStore.fileSrc}
/>
</div> </div>
)} )}
</FormLabel> </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" "w-full border border-white bg-[#2B2B2B] px-[10px] py-[8px] text-sm"
} }
> >
<ReactPlayer <ReactPlayer
playsinline={true} playsinline={true}
controls={true} controls={true}
width={"100%"} width="100%"
url={rootStore.fileSrc} config={{ file: { attributes: { playsInline: true } } }}
/> url={rootStore.fileSrc}
/>
</div> </div>
)} )}

View File

@ -66,13 +66,13 @@ export const ViewContentPage = () => {
</div> </div>
)} )}
<ReactPlayer <ReactPlayer
playsinline={true} playsinline={true}
controls={true} controls={true}
width={"100%"} width="100%"
config={{}} config={{ file: { attributes: { playsInline: true } } }}
url={content?.data?.display_options?.content_url} url={content?.data?.display_options?.content_url}
/> />
<section className={"flex flex-col"}> <section className={"flex flex-col"}>
<h1 className={"text-[20px] font-bold"}> <h1 className={"text-[20px] font-bold"}>