Stream JPEG over WebRTC datachannel with ESP32.
| Hardware | |
|---|---|
| ESP32-EYE | ![]() |
| ESP32 M5Camera | ![]() |
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$ 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$ idf.py menuconfig
# Choose Example Connection Configuration and change the SSID and password$ idf.py build$ idf.py flashCheck 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


