Skip to content

Commit

Permalink
Video recorder: restrict media recorder by availability
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Aug 20, 2023
1 parent f040a5f commit a70e18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/components/video-upload-threespeak/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ export const VideoUpload = (props: Props & React.HTMLAttributes<HTMLDivElement>)
/>
) : (
<div className="video-source">
{selectedFile ? (
<></>
) : (
{!selectedFile && "MediaRecorder" in window ? (
<div
className="d-flex align-items-center flex-column border rounded p-3 video-upload-item"
onClick={() => setShowRecorder(true)}
>
{recordVideoSvg}
{_t("video-upload.record-video")}
</div>
) : (
<></>
)}
<VideoUploadItem
label={_t("video-upload.choose-video")}
Expand Down

0 comments on commit a70e18f

Please sign in to comment.