WebRTC allows real time peer to peer video and audio communication in browsers without thirt-party apps.
Useful for building video conferencing apps that operate directly between browsers.
WebRTC는 브라우저에서 타사 앱 없이 실시간 P2P 비디오 및 오디오 통신을 가능하게 한다. 브라우저 간 직접 작동하는 화상회의 앱을 구축하는데 유용하다.
A peer creates an offer using Session Description Protocol that describes the connection parameters(e.g, codecs and timing) The offer is stored on a signaling server to be accessed by the other peer, who responds with an answer.
피어는 세션 설명 프로토콜을 사용해 연결 매개변수를 설명하는 제안을 만든다.(코덱 및 타이밍) 을 설명하는 제안을 만든다.
이 제안은 신호 서버에 저장되어 다른 피어가 접근해 응답을 제공한다.
P2P connections face challenges due to firewalls and network address translations(NAT)
Interactive Connectivity Establishment (ICE) standard helps discover public-facing IPs and ports using STUN servers(Google provides free STUN servers)
p2p연결은 방화벽 및 네트워크 주소 변환으로 인해 어려움을 겪는다.(NAT)
상호 연결성 설정 표준은 STUN 서버를 사용해 공개 IP 및 포트를 검색하는데 도움을 준다.(구글은 무료 스턴서버를 제공한다)
WebRTC 를 활용하면 브라우저간 실시간 화상 통화를 구현할 수 있다.
webRTC 기반 앱을 구축할때는 Firebase Firestore 같은 실시간 데이터베이스를 활용해 신호 교환 과정을 더욱 간단히 처리할 수있다.
'라이브 스트리밍' 카테고리의 다른 글
웹 소켓은 어떻게 작동하는가? (1) | 2025.01.15 |
---|---|
라이브 스트리밍의 기본 원리 (0) | 2025.01.15 |
ffmpeg에 대하여 (0) | 2025.01.14 |
댓글