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 <ReactPlayer
playsinline={true} playsinline={true}
controls={true} controls={true}
width={"100%"} width="100%"
config={{ file: { attributes: { playsInline: true } } }}
url={rootStore.fileSrc} url={rootStore.fileSrc}
/> />
</div> </div>
)} )}
</FormLabel> </FormLabel>

View File

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

View File

@ -69,8 +69,8 @@ export const ViewContentPage = () => {
<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}
/> />