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

@ -108,9 +108,13 @@ export const DataStep = ({ nextStep }: DataStepProps) => {
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={rootStore.fileSrc}
/>
</div>
)}
</FormLabel>

View File

@ -157,9 +157,12 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={rootStore.fileSrc}
/>
</div>
)}

View File

@ -69,8 +69,8 @@ export const ViewContentPage = () => {
<ReactPlayer
playsinline={true}
controls={true}
width={"100%"}
config={{}}
width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={content?.data?.display_options?.content_url}
/>