[lib] mediamtx로 webrtc 구현하기

etc-image-0

 

Mediamtx에서의 WebRTC

 

WebRTC is an API that makes use of a set of protocols and methods to connect two clients together and allow them to exchange real-time media or data streams. You can read a stream with WebRTC and a web browser by visiting:

http://localhost:8889/mystream

 

WHEP is a WebRTC extensions that allows to read streams by using a URL, without passing through a web page. This allows to use WebRTC as a general purpose streaming protocol. If you are using a software that supports WHEP, you can read a stream from the server by using this URL:

http://localhost:8889/mystream/whep

 

Regarding authentication, read Authenticating with WHIP/WHEP.

Depending on the network it may be difficult to establish a connection between server and clients, read Solving WebRTC connectivity issues.

Known clients that can read with WebRTC and WHEP are FFmpeg, GStreamer, Unity and web browsers.

 

WebRTC 해석

WebRTC는 프로토콜과 메서드 세트를 사용하여 두 클라이언트를 서로 연결하고 실시간 미디어 또는 데이터 스트림을 교환할 수 있는 API이다. WebRTC와 웹 브라우저를 통해 스트림을 읽을 수 있다.

http://localhost:8889/mystream

 

WEP은 웹 페이지를 거치지 않고 URL을 사용하여 스트림을 읽을 수 있는 WebRTC 확장 프로그램이다. 이를 통해 WebRTC를 범용 스트리밍 프로토콜로 사용할 수 있다. WEP을 지원하는 소프트웨어를 사용하는 경우 다음 URL을 사용하여 서버에서 스트림을 읽을 수 있다.

http://localhost:8889/mystream/whep

 

인증에 관해서는 WHIP/WHEP로 인증을 읽어보자.

네트워크에 따라 서버와 클라이언트 간의 연결을 설정하는 것이 어려울 수 있다. WebRTC 연결 문제 해결을 읽어보자.

WebRTC와 WHEP로 읽을 수 있는 알려진 클라이언트는 FFmpeg, GStreamer, Unity 및 웹 브라우저이다.

 

 

WebRTC: Real-Time Communication in Browsers / WebRTC: 브라우저에서의 실시간 통신

https://www.w3.org/TR/webrtc/#intro

 

WebRTC: Real-Time Communication in Browsers

Abstract This document defines a set of ECMAScript APIs in WebIDL to allow media and generic application data to be sent to and received from another browser or device implementing the appropriate set of real-time protocols. This specification is being dev

www.w3.org

 

WebRTC-HTTP Egress Protocol (WHEP) / WebRTC-HTTP 출력 프로토콜(WHEP)

https://datatracker.ietf.org/doc/draft-murillo-whep/

 

WebRTC-HTTP Egress Protocol (WHEP)

This document describes a simple HTTP-based protocol that will allow WebRTC-based viewers to watch content from streaming services and/or Content Delivery Networks (CDNs) or WebRTC Transmission Network (WTNs).

datatracker.ietf.org

 

 

 

참고

https://github.com/bluenviron/mediamtx#webrtc

 

GitHub - bluenviron/mediamtx: Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read,

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams. - bluenviron/mediamtx

github.com

 

'JavaScript > 실무' 카테고리의 다른 글

[js] 시간 formatting 하기  (0) 2024.12.18
[JS] 자주쓰는 정규표현식  (2) 2024.11.12