kclyu / rpi-webrtc-streamer

This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating [WebRTC](https://webrtc.org/native-code/) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.
Other
626 stars 108 forks source link

Serving still captures #130

Open ArosPrince opened 3 years ago

ArosPrince commented 3 years ago

Hi, after diging through the code, it's not clear to me, who should serve the still captured files.

There's the request to update the background of the video frame. It calls getStillImage in streamer_connection_rws.js. I can tell the C++ code actually captures the still image and saves it on the drive. But the thing is that the response object to the request has a field url, which in my case always has a value of /still/still_capture.jpg. The JS code tries to GET that file by calling this endpoint, but it always get's 404. After searching the whole server side, it's absolutely not clear to me, what is supposed to serve these files. There's no /stiil route anywhere in the code.

Is there something obvious I am missing?

image