feat: autoplay videos when previewing (#1036)

This commit is contained in:
Aman Harwara
2022-05-23 15:18:42 +05:30
committed by GitHub
parent 6401da2570
commit ce39fe55db
2 changed files with 40 additions and 33 deletions

View File

@@ -13,7 +13,7 @@ export const PreviewComponent: FunctionComponent<Props> = ({ file, objectUrl })
}
if (file.mimeType.startsWith('video/')) {
return <video className="w-full h-full" src={objectUrl} controls />
return <video className="w-full h-full" src={objectUrl} controls autoPlay />
}
if (file.mimeType.startsWith('audio/')) {