Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix #33

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import SomethingWrongErrorPage from '@page/errorPage/SomethingWrong';
import ModalProvider from './modalProvider';
import MediaStreamPage from '@page/mediaStreamPage';
import KakaoInAppBrowserDetect from './KakaoInAppBrowserDetect';
import landingLoader from '@routes/landingLoader';

const AppRouter = ({ queryClient }: { queryClient: QueryClient }) => {
const routes = createBrowserRouter([
Expand All @@ -43,7 +42,6 @@ const AppRouter = ({ queryClient }: { queryClient: QueryClient }) => {
{
index: true,
element: <LandingPage />,
loader: async () => await landingLoader(),
},
{
path: PATH.INTERVIEW,
Expand Down
4 changes: 2 additions & 2 deletions src/page/interviewSettingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const InterviewSettingPage: React.FC = () => {

const [, setIsEncodingAllow] = useRecoilState(encodingState);
useEffect(() => {
async () => {
void (async () => {
const isEncodingAllow = await canUseFFmpeg();
setIsEncodingAllow({ isEncodingAllow: isEncodingAllow });
};
})();
}, [setIsEncodingAllow]);

const pageInfo = [
Expand Down
2 changes: 2 additions & 0 deletions src/utils/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export const canUseFFmpeg = async () => {
'640x360',
'-r',
'30', // 프레임 레이트 설정: 30fps
'-threads',
'4',
'output.mp4', // 출력 파일
],
10000
Expand Down