2 Replies Latest reply on Aug 17, 2015 11:00 PM by sinocgtchen

    Edison Arduino: Video Streaming issues with webcam

    sinocgtchen

      Hi,

       

      I am working on small robot car with usb webcam. I can remote control robot over the browser but video streaming, my robot webpage looks like as below:

      streaming_question.jpg

       

      1. my Arduino sketch (webpage display) as below:

          

      boolean mainpage(WiFiClient *myClient)

      {

                  myClient->print("<html><head></head>");

                myClient->print("<body>");

                myClient->print("<table border= 0>");

                myClient->print("<tr>");

                myClient->print("<th>  </th>");

                myClient->print("<th>");

                myClient->print("<form  method=get>");

                myClient->print("<input type=hidden name=V value=F /><br />");

                myClient->print("<input type=submit style='height: 55px; width: 200px' value=FORWARD>");

                  myClient->print("</form>");

                    myClient->print("</th><th> </th>");

                myClient->print("</tr>");

                myClient->print("<tr><th>");

                myClient->print("<form  method=get >");

                myClient->print("<input type=hidden name=V value=L /><br />");

                myClient->print("<input type=submit style='height: 55px; width: 200px' value=LEFT>");

      //          myClient->print("<input type=submit value=LEFT>");

                myClient->print("</form>");

                myClient->print("</th><th>");

                myClient->print("<form  method=get >");

                myClient->print("<input type=hidden name=V value=S /><br />");

                myClient->print("<input type=submit style='height: 55px; width: 200px' value=STOP>");

                myClient->print("</form>");

               myClient->print("</th><th> ");

                myClient->print("<form  method=get >");

                myClient->print("<input type=hidden name=V value=R /><br />");

                myClient->print("<input type=submit style='height: 55px; width: 200px' value=RIGHT>");

                myClient->print("</form>");

                myClient->print("</th></tr> <tr> <th>  </th> <th> ");

                myClient->print("<form  method=get >");

                myClient->print("<input type=hidden name=V value=B /><br />");

                myClient->print("<input type=submit style='height: 55px; width: 200px' value=BACKWARD>");

                myClient->print("</form>");

                myClient->print(" </th> <th> </th> </tr>");

                myClient->print("</table>");

                myClient->print("<br/>");

               

               myClient->print("<iframe src='http://192.168.0.124:8080' width='640' height='480' scrolling='no' frameborder='0'></iframe>");

               

                myClient->print("</body>");

                myClient->print("</html>");

         

                return true;

      }

       

      My question is:

      1. I followed here drejkim/edi-cam · GitHub  to do video streaming, it is working well.  (my local website: 192.168.0.124:8080)

      2. My Robot control webserver (my local website: 192.168.0.124:70). It is working well.

      3. I added html iframe tag (red font in my Arduino sketch) in robot control webpage/mainpage() to display video (in Video Display Here), it is failed.

       

      In short, how to make video streaming display on arduino sketch webserver? Any other methods?

      Thanks!

       

      Dennis