develop 브랜치

develop 시각 : 1월 16일 오전 12시

Browser (촬영기기 사이드

세션 암호화 역할 데이터 전송 방식
mirroringSession .required 비디오 스트림 전송, 사진 리소스 전송 .unreliable (스트림),
sendResource (사진)
mirroringCommandSession .none 미러링 기기와 명령 교환 (전송/수신) .reliable
remoteSession .required 리모트 기기 연결 (명령 통신은 mirroringCommandSession 사용) -

Advertiser (미러링/리모트기기 사이드)

세션 암호화 역할 데이터 전송 방식
session .required 스트림 수신, 사진 리소스 수신 -
commandSession .none 촬영 기기와 명령 교환 (전송/수신) .reliable

🤔 생각한 해결 방법 기록


첫 번째 시도. remoteSession 자체를 .required가 아닌 .none으로 두고 연결해보기

→ 이유는 모르겠지만 여전히 암호화 오류 발생

→ 분명 remoteSession(.none) 하나만 사용해도 암호화가 일치하니 명령이 잘 넘어가야하는 것 아닌가?


두 번째 시도. BrowserremoteCommandSession(.none) 을 더 생성하여 2단계 순차 연결 구조 구축

https://github.com/boostcampwm2025/iOS03-dolAwang/pull/109

Browser (촬영기기 사이드)

세션 암호화 역할 데이터 전송
mirroringSession .required 비디오 스트림, 사진 리소스 전송 .unreliable / sendResource
mirroringCommandSession .none 미러링 기기 명령 교환 .reliable
remoteSession .required 리모트 기기 스트림용 (현재 미사용) -
remoteCommandSession .none 리모트 기기 명령 교환 .reliabl