fix: Added potential fix for issue where some video would show as not supported

This commit is contained in:
Aman Harwara
2022-12-20 22:02:30 +05:30
parent 0941183c8b
commit a7add80633

View File

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