Skip to content

Commit

Permalink
chore: toast에 들어가는 문구 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
adultlee committed Dec 12, 2023
1 parent 6e0749e commit 0fcccc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FE/src/utils/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { MutableRefObject } from 'react';
import { toast } from '@foundation/Toast/toast';
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { toBlobURL } from '@ffmpeg/util';

const ffmpeg = new FFmpeg();

type StartRecordingProps = {
Expand Down Expand Up @@ -73,7 +74,7 @@ export const localDownload = async (
export const EncodingWebmToMp4 = async (blob: Blob, recordTime: string) => {
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.4/dist/umd';
toast.info(
'영상 인코딩을 시작합니다. 세로고침 혹은 화면을 종료시 데이터가 소실될 수 있습니다.'
'영상 인코딩을 시작합니다. 새로고침 혹은 화면을 종료시 데이터가 소실될 수 있습니다.'
);

let lastLogTime = 0;
Expand Down Expand Up @@ -112,7 +113,7 @@ export const EncodingWebmToMp4 = async (blob: Blob, recordTime: string) => {
await ffmpeg.exec(['-i', 'input.webm', 'output.mp4']);
const data = await ffmpeg.readFile('output.mp4');
const newBlob = new Blob([data], { type: 'video/mp4' });
toast.info('성공적으로 Mp4 인코딩이 성공했습니다😊');
toast.info('성공적으로 Mp4 인코딩이 완료되었습니다😊');

return newBlob;
};
Expand Down

0 comments on commit 0fcccc6

Please sign in to comment.