Add control button to mjpeg_server.py or mjpeg_server_2.py #613
-
I am using this code: I'd like to add a button on the web page, which allows the user sitting at the web browser to toggle an on/off variable or call a function in the server. When they push this button, it should not interrupt the streaming video window on the browser. Could someone share a bit of code that does something similar? (A few lines of embedded java might be needed to avoid reloading the page and/or interrupting the video, but I am not sure.) Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The code in The use of the out of date path /opt/vc/bin/ can be removed to call vcgencmd directly to keep the example code running correctly in current releases. |
Beta Was this translation helpful? Give feedback.
The code in
https://www.e-tinkers.com/2018/04/how-to-control-raspberry-pi-gpio-via-http-web-server/
may be a useful starting point.
The use of the out of date path /opt/vc/bin/ can be removed to call vcgencmd directly to keep the example code running correctly in current releases.