Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

Is there a function to stream my PiCamera on Webserver

$
0
0

Is there a reasonable solution to stream a live Video from my PiCamera to an apache2 Server. I want that I can activate the stream using a button on the server and deactivate it the same way. However, I looked up a lot of solutions but didn't find one that belongs to my problem. Maybe someone here knows how to solve it. On the apache2 server, I use Html, PHP and CSS. I use the PHP language to configure my other buttons with a python script.

Here you can see my PHP code that I use to activate a script:

<html>
<head>
    <form method="post">
        <input type="submit" value="Schiessen" name="schiessen">
    </form>
<title>MUW</title>
</head>
<body>
    <?php
    if(isset($_POST["schiessen"]))
    {
        $command = escapeshellcmd("/var/www/html/runMotors.py");
        $output = shell_exec($command);
        echo $output;
    }
    ?>
</body>

Here is an example how I want that my server looks like. Most important is that in the middle is a sort of display which shows the live stream. It is very important that you can still use the buttons even if the camera is on. Therefore the camera display should be such as a rectangle in the middle. enter image description here


Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>