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

Feat/403: [FE] [녹음] 녹음 시 트랙 재생 관련 인터랙션 막기 #407

Merged
merged 4 commits into from
Jan 23, 2024

Conversation

gxxrxn
Copy link
Member

@gxxrxn gxxrxn commented Jan 17, 2024

구현 기능

  • 녹음이 시작되면 TrackPlayer의 시간과 재생 상태를 조작할 수 없도록 수정했어요.

관련 이슈

@gxxrxn gxxrxn added ✨ feature New feature or request 📚 프론트엔드 Frontend labels Jan 17, 2024
@gxxrxn gxxrxn self-assigned this Jan 17, 2024
Copy link

vercel bot commented Jan 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
collusic-new ✅ Ready (Inspect) Visit Preview Jan 17, 2024 0:00am

@@ -4,6 +4,7 @@
display: flex;
justify-content: center;
align-items: center;
background-color: #404040;
background-color: rgba(255, 255, 255, 0.1);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

player 스틱이 마이크 아이콘을 가리지 않도록 투명도를 설정했어요

@@ -26,29 +29,31 @@ const useCreateTrack = ({
initRecord,
} = useRecord(inputDeviceId);

const { start: startTimer, pause: pauseTimer, isExpired, time: timerTime } = useTimer(30);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이전 로직에서는 녹음 타이머, player 재생을 위한 타이머가 각각 30초씩 동작하고 있었는데, 상태로 관리하다보니 녹음 상태와 Player 재생 상태가 불일치하는 문제가 발생해서 녹음은 트랙 재생 상태에 의존하여 시작하도록 수정했어요.

@SingTheCode SingTheCode merged commit a3e0892 into dev-fe Jan 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request 📚 프론트엔드 Frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FE] [녹음] 녹음 시 트랙 재생 관련 인터랙션 막기
2 participants