Skip to content
forked from sepfy/libpeer

WebRTC Library for IoT/Embedded Device using C

License

Notifications You must be signed in to change notification settings

xiangxud/libpeer

 
 

Repository files navigation

libpeer - Portable WebRTC Library for IoT/Embedded Device

build Discord

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

Features

  • Vdieo/Audio Codec
    • H264
    • G.711 PCM (A-law)
    • G.711 PCM (µ-law)
    • OPUS
  • DataChannel
  • STUN/TURN
  • IPV4/IPV6
  • Signaling

Dependencies

Getting Started with Generic Example

$ sudo apt -y install git cmake
$ git clone --recursive https://github.com/sepfy/libpeer
$ cd libpeer
$ cmake -S . -B build && cmake --build build
$ 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
$ ./generic/sample/sample

Examples for Platforms

  • ESP32: MJPEG over datachannel
  • PICO: Ping pong with datachannel
  • Raspberry Pi: Video and two-way audio stream

About

WebRTC Library for IoT/Embedded Device using C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.3%
  • CMake 2.7%