Desktop TCP Streaming (java)

前端 未结 2 1696
夕颜
夕颜 2021-01-22 08:06

I want to stream desktop screen captures using sockets. I don\'t know the exact way to do this, so I went with AWT\'s robot :)

Robot robot = ne         


        
2条回答
  •  孤街浪徒
    2021-01-22 08:37

    I think you'll need external library to create video (may be platform dependent).

    The approach with images is simple but you'll need to send each frame. When you use video codec size is smaller because it sends some of frames in full size and other contain only changed part of the picture See here:

    http://en.wikipedia.org/wiki/Key_frame

    http://en.wikipedia.org/wiki/I-frame


    Here some open-source libs I just googled:

    https://code.google.com/p/java-screen-recorder/

    http://www.xuggle.com/xuggler/


    I think You also can find some libs to create video stream from images...

提交回复
热议问题