Android Question Merge 2 projects, HTML Server & CCTV Server

Discussion in 'Android Questions' started by Jack Howard, May 1, 2019.

  1. Jack Howard

    Jack Howard Member Licensed User

    Merge 2 projects, HTML Server & CCTV Server

    Project 1 has Server serving 4 Text based web pages,
    The data on the web pages are collected by the "Text" from the serial port and shown in different formats.
    It uses Server As HttpServer,
    based on an open source project named Jetty.
    https://www.b4x.com/android/forum/threads/embed-an-http-server-in-your-android-application.25984/
    This runs fine using the phone as a Hotspot

    Project 2
    Based on Erels MJPEG CCTV server
    It uses Server As ServerSocket
    https://www.b4x.com/android/forum/threads/mjpeg-cctv-server.73792/
    This uses the Android Camera as a CCTV server and I have added to this Super Impose "Text" onto the visual image
    This also runs fine using the phone as a Hotspot
    I wish to run the HTML pages and the Camera with superimposed Text off the same server.

    My issue is, I cant see how to stream the CCTV frames using Server As HttpServer
    or
    Serve HTML pages using Server As ServerSocket.

    PS
    DSDominno mentions "I have build a service TCP server application (ServerSocket and AsyncStreams) that run...."
    "In HTTP mode It can decode all the Methods (GET,POST, HEAD, PUT, DELETE)"

    But I can not see any snippets of HTML Server working with ServerSocket
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Use a different port. One for the CCTV server and one for the http server.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice