8000 GitHub - DOSYCORPS/pear: WebRTC Library for IoT/Embedded Device using C
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DOSYCORPS/pear

 
 

Repository files navigation

Pear - WebRTC Toolkit for IoT/Embedded Device

pear-ci

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.

Dependencies

Getting Started

# 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

Examples

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)
./cmake/examples/local_file/local_file
  1. Copy base64 sdp answer to browser.
  2. Click start session.

You will see the video on your browser.

About

WebRTC Library for IoT/Embedded Device using C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 87.0%
  • HTML 7.7%
  • CMake 4.2%
  • Other 1.1%
0