libpeer is a WebRTC implementation written in C, developed with BSD socket. The library aims to integrate IoT/Embedded device video/audio streaming with WebRTC, such as ESP32 and Raspberry Pi
- Vdieo/Audio Codec
- H264
- G.711 PCM (A-law)
- G.711 PCM (µ-law)
- OPUS
- DataChannel
- STUN/TURN
- Signaling
- WHIP
- MQTT
$ sudo apt -y install git cmake
$ sudo pip install jsonschema
$ git clone --recursive https://github.com/sepfy/libpeer
$ cd libpeer
$ mkdir build
$ cd build
$ cmake ..
$ make
$ wget http://www.live555.com/liveMedia/public/264/test.264 # Download test video file
$ wget https://mauvecloud.net/sounds/alaw08m.wav # Download test audio file
$ ./examples/sample/sample
- ESP32: MJPEG over datachannel
- ESP32-S3: Push video and audio to media server
- Raspberry Pi: Video and two-way audio stream