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
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