I would like to have an app that allows a server to send screen images to several clients when the server has created a new image.
I was thinking of a design where the clients are continually polling the server asking for the next image. When a new image is available, the server would send it to each client as a response to the query. Somehow the server would need to keep track of what image has been sent to what client so duplicates would not need to be sent.
My usage of the programs would be for presenting screen shots of what is shown on my PC to the PCs in our clubhouse to be shown on the TVs that those PCs are using for monitors while giving a presentation to an audience. Also anyone in the audience could also connect to my server to see the screens on their tablet or phone.
posted 2 weeks ago
Here's what I have come up with. The server is Tomcat. I have a program the uses Robot to capture the screen and write the image into a folder inside tomcat.
The user loads a html page that uses js to poll the server every so often for the next image. Images are saved with an incremented suffix number.
The code was copied from a SlideShow app and may have a few leftovers from that.
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar: