Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.64 KB

File metadata and controls

57 lines (48 loc) · 1.64 KB

ESP32

Stream JPEG over WebRTC datachannel with ESP32.

Support List

Hardware
ESP32-EYE
ESP32 M5Camera

Instructions

Install esp-idf

at lease v5.2

$ git clone -b v5.2.2 https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ source install.sh
$ source export.sh

Download

$ git clone https://github.com/sepfy/libpeer
$ cd libpeer/examples/esp32
$ idf.py add-dependency "espressif/esp32-camera^2.0.4"
$ idf.py add-dependency "mdns"
$ git clone --recursive https://github.com/sepfy/esp_ports.git components/srtp
$ git clone -b components https://github.com/sepfy/usrsctp-esp32.git components/usrsctp

Configure

$ idf.py menuconfig
# Choose Example Connection Configuration and change the SSID and password

Build

$ idf.py build

Test

$ idf.py flash

Check the serial port message:

I (10813) Camera: Camera Task Started
I (10813) webrtc: peer_signaling_task started
I (10813) webrtc: peer_connection_task started
I (10823) webrtc: [APP] Free memory: 3882160 bytes
I (10823) webrtc: open https://sepfy.github.io/webrtc?deviceId=esp32-xxxxxxxxxxxx

Open the browser and visit the website showing by serial port message image