geeksville / Micro-RTSP

A RTSP video server intended for very small CPUs (ESP32 etc)
MIT License
755 stars 199 forks source link

Fix 'error sending udp packet' error Update platglue-esp32.h #49

Closed mrcodetastic closed 1 year ago

mrcodetastic commented 1 year ago

Not enough time is being given between the sending of the streamed frame data and the closing of the UDP packet. Can inconsistently cause errors. A small delay is required.

Errors when viewing: rtsp://192.168.X.XXX:554/mjpeg/1

22:21:25.263 > error sending udp packet
22:21:25.263 > [ 41246][E][WiFiUdp.cpp:183] endPacket(): could not send data: 12
22:21:25.263 > error sending udp packet
22:21:25.416 > [ 41393][E][WiFiUdp.cpp:183] endPacket(): could not send data: 12
22:21:25.416 > error sending udp packet