jacksonliam / mjpg-streamer

Fork of http://sourceforge.net/projects/mjpg-streamer/
3.01k stars 1.23k forks source link

Start and stop stream just when open or close URL in browser #368

Open cjjaeckson opened 1 year ago

cjjaeckson commented 1 year ago

Hi, first of all: Thanks a lot for that nice tool! I'm loving it! I have a quick question, or rather a change request. Currently my webcam stream starts as soon as I run the following code: /usr/local/bin/mjpg_streamer -i "input_uvc.so -f 24 -r 1920x1080" -o "output_http.so -w /usr/local/share/mjpg-streamer/www" Is there a possibility to start and stop the stream only when the URL is called or closed in the web browser? Long time ago I used a git project (PICS by kwasmich) which had this feature. This feature could save a lot of power and computing capacity, since 99% of the time I don't look at the stream. I don't want to rule out that I just haven't discovered the feature yet. :D Could someone help me with this perhaps? Thanks a lot!