Hey everyone, I'm trying to compile the the example code from this site: https://hyperion-project.org/w…uffer-Java-client-example
I'm using eclipse and I installed protobuf-dt, but I can't figure out how to properly do the imports and use protoc on the definition file. It can't find:
import com.google.protobuf.ByteString;
import proto.*; ...
As a background story: I want to create a Java Hyperion Screen grabber for use in Windows which relies on screenshots rather than DirectX 9 or DirectX 11 because that way I can skip HDCP/DRM/Copy protection of Netflix 4k and the Xbox One streaming app. Here is my code I want to add to the protobuf client example in a loop:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
BufferedImage capture = new Robot().createScreenCapture(screenRect);
ImageIO.write(capture, "jpg", baos);
byte[] imageData = baos.toByteArray();
-> send to hyperion
Would be great if someone could help me with setting up my eclipse!