Live screen sharing to Java application (localhost)
I'm looking for a way to add overlays to running Windows games, such as OBS (game streaming application for twitch)
Although I use the robot class to take 25 / 30 screenshots per second and display them, I'm not sure this is the right solution
So my question is as follows: how do I share the running application screen to a Java application (localhost, the same computer) so that I can add an overlay layer in front of it?
Edit: I try to use VLC streaming media, but it makes the computer really lag (i7 / 8GB)... I also try to use ffmpeg, use screen capture recorder and gdigrab, the computer has no delay, but the video drops like 5 / real-time 10 FPS
In ffmpeg, I used the following command: ffplay - F dshow - F gdigrab - I title = "< name >" - fragment 30
I want to have a 25 / 30 FPS game computer (i7 / 8GB)
Solution
I used to use robot & amp; Simrat (a simple screen sharing application like TeamViewer) was developed CORBA. You may get the basic idea of looking at the code This is not the best way to achieve screen sharing Java RMI is helpful to you