Back to Mediamtx

WebRTC clients

docs/4-read/02-webrtc.md

1.18.11.3 KB
Original Source

WebRTC clients

supported codecs
videoAV1, VP9, VP8, H265, H264
audioOpus, G722, G711 (PCMA, PCMU)
otherKLV

WebRTC is an API that makes use of a set of protocols and methods to connect two clients together and allow them to exchange live 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 extension 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

Be aware that not all browsers can read any codec, check Codec support in browsers.

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

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