develop 시각 : 1월 16일 오전 12시
| 세션 | 암호화 | 역할 | 데이터 전송 방식 |
|---|---|---|---|
| mirroringSession | .required | 비디오 스트림 전송, 사진 리소스 전송 | .unreliable (스트림), |
| sendResource (사진) | |||
| mirroringCommandSession | .none | 미러링 기기와 명령 교환 (전송/수신) | .reliable |
| remoteSession | .required | 리모트 기기 연결 (명령 통신은 mirroringCommandSession 사용) | - |
| 세션 | 암호화 | 역할 | 데이터 전송 방식 |
|---|---|---|---|
| session | .required | 스트림 수신, 사진 리소스 수신 | - |
| commandSession | .none | 촬영 기기와 명령 교환 (전송/수신) | .reliable |
미러링 기기 연결 흐름 (2단계 순차 연결)
1단계
mirroringCommandSession(.none) ↔ commandSession(.none) + "command" 컨텍스트
2단계
mirroringSession(.required) ↔ session(.required) + "streaming" 컨텍스트
리모트 기기 연결 흐름 (1단계)
remoteSession(.required) ↔ commandSession(.none) - "command" context
⭐ 문제 발생 암호화 불일치함 (.required vs .none)
Peer [XXX의 XXX · XXX] has incompatible encryption preference [None].
첫 번째 시도. remoteSession 자체를 .required가 아닌 .none으로 두고 연결해보기
→ 이유는 모르겠지만 여전히 암호화 오류 발생
→ 분명 remoteSession(.none) 하나만 사용해도 암호화가 일치하니 명령이 잘 넘어가야하는 것 아닌가?
두 번째 시도. Browser에 remoteCommandSession(.none) 을 더 생성하여 2단계 순차 연결 구조 구축
https://github.com/boostcampwm2025/iOS03-dolAwang/pull/109
| 세션 | 암호화 | 역할 | 데이터 전송 |
|---|---|---|---|
| mirroringSession | .required | 비디오 스트림, 사진 리소스 전송 | .unreliable / sendResource |
| mirroringCommandSession | .none | 미러링 기기 명령 교환 | .reliable |
| remoteSession | .required | 리모트 기기 스트림용 (현재 미사용) | - |
| remoteCommandSession | .none | 리모트 기기 명령 교환 | .reliabl |