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.
# sudo apt -y install libglib2.0-dev libssl-dev git cmake ninja-build # sudo pip3 install meson # git clone --recursive https://github.com/sepfy/pear # ./build-third-party.sh # 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
- Open index.html with browser in your computer
- Copy textarea content to remote_sdp.txt
- Download test video file
- Run local file sample. (Please ensure that remote_sdp.txt and test.264 in the same directory)
- Copy base64 sdp answer to browser.
- Click start session.
You will see the video on your browser.