diff --git a/packages/roomkit-react/src/Prebuilt/components/Preview/PreviewForm.tsx b/packages/roomkit-react/src/Prebuilt/components/Preview/PreviewForm.tsx index ff42236635..644e537faf 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Preview/PreviewForm.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Preview/PreviewForm.tsx @@ -27,13 +27,16 @@ const PreviewForm = ({ e.preventDefault(); }; const isMobile = useMedia(cssConfig.media.md); - const { isHLSRunning, isRTMPRunning } = useRecordingStreaming(); + const { isHLSRunning, isRTMPRunning, isRecordingOn } = useRecordingStreaming(); const layout = useRoomLayout(); const { join_form: joinForm = {} } = layout?.screens?.preview?.default?.elements || {}; const showGoLive = - joinForm?.join_btn_type === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning; + joinForm?.join_btn_type === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && + !isHLSRunning && + !isRTMPRunning && + !isRecordingOn; return (