WebRTC Library for IoT/Embedded Device using C

Pear - WebRTC Toolkit for IoT/Embedded Device


Pear is a WebRTC SDK written in C. The SDK aims to integrate IoT/Embedded device with WebRTC applications.

Notice: This project is a work in progress. Currently, only support streaming H264 video to browser.


Getting Started

# sudo apt -y install libglib2.0-dev libssl-dev git cmake ninja-build
# sudo pip3 install meson
# git clone --recursive
# ./
# mkdir cmake
# cd cmake
# cmake ..
# make


This example is tested on Raspberry Pi zero W with image 2021-01-11-raspios-buster-armhf-lite.img

  1. Open index.html with browser in your computer
  2. Copy textarea content to remote_sdp.txt
  3. Download test video file
  4. Run local file sample. (Please ensure that remote_sdp.txt and test.264 in the same directory)
  1. Copy base64 sdp answer to browser.
  2. Click start session.

You will see the video on your browser.

Repo Not Found