-
Notifications
You must be signed in to change notification settings - Fork 2
[FEAT/#162] 마이크 뮤트 기능을 구현했습니다. #173
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
Conversation
- allowBluetooth 옵션으로 블루투스 기기의 입출력을 지원합니다. - allowAirplay 옵션으로 에어 플레이 기기의 출력을 지원합니다. Co-Authored-By: Youngkyu Song <[email protected]>
- AudioTrack의 isEnabled가 오디오 송출을 결정하는 속성인데 해당 부분을 바꿔주는 방식으로 메서드를 설정했습니다. - 기존에 audioTrack을 생성해서 PeerConnection에 add해주고 따로 WebRTCService가 audioTrack을 가지고 있진 않았는데 마이크 음소거를 위해 가지고 있을 수 있게 했습니다. - ConnectionClient에 WebRTC의 AudioTrack 설정을 바꿀 수 있는 메서드를 생성했습니다.
…변경 메서드 구현 - ConnectionRepository에서 ConnectionClients의 AudioTrack 상태 변경 메서드 구현했습니다. - 변경 후 AudioTrack isEnabled 값을 Publisher를 통해 보내고 있습니다. - didChangeLocalAudioTrackStateSubject는 현재 isEnabled 값을 보관하고 있습니다.
- 뷰모델에서 마이크 버튼 input을 받고 수행할 메서드를 구현 - UseCase에서 오는 MicState Bool 값을 가지고 마이크 버튼 형태를 바꿀 수 있도록 리팩토링, 실제 isEnable 값에 따라 마이크 상태가 변경되는 것이 좀 더 안정적이라고 판단 - toggle -> change로 네이밍 변경
- WebScoket -> WebSocket 오타 수정 - Lcoal -> Local 오타 수정 - photoRoomViewModel에 의존성 주입
PhotoGether/DataLayer/PhotoGetherData/PhotoGetherData/ConnectionRepositoryImpl.swift
Outdated
Show resolved
Hide resolved
PhotoGether/DataLayer/PhotoGetherData/PhotoGetherData/ServiceImpl/WebRTCServiceImpl.swift
Show resolved
Hide resolved
...inLayer/PhotoGetherDomain/PhotoGetherDomain/UseCaseImpl/ChangeLocalMicStateUseCaseImpl.swift
Outdated
Show resolved
Hide resolved
youn9k
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!! 이렇게 빨리 만드시다니..
Co-authored-by: Youngkyu Song <[email protected]>
0Hooni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTML 👍
수고 많으셨습니다!!
hsw1920
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
...resentationLayer/PhotoRoomFeature/PhotoRoomFeature/Source/ViewModel/PhotoRoomViewModel.swift
Outdated
Show resolved
Hide resolved
- 반대로 설정되어 있던 상태명을 변경해줬습니다.
…4-PhotoGether into feat/#162-mic-mute
🤔 배경
Mic Mute 버튼만 있고 로직은 없었습니다
📃 작업 내역
내 음성 입력 AudioTrack에서 꺼주기
✅ 리뷰 노트
🎨 스크린샷
🚀 테스트 방법
기기 두개를 연결하고 한 쪽의 마이크 버튼을 눌러서 소리의 입출력을 확인합니다.