phoboslab / jsmpeg-vnc

A low latency, high framerate screen sharing server for Windows and client for browsers
2.39k stars 397 forks source link

Linux or MAC OSX server #5

Open fbgranado opened 9 years ago

fbgranado commented 9 years ago

Hi,

Its possible to use a linux or Mac OS as a server?

If I compile the source code it will work?

Thanks

phoboslab commented 9 years ago

No. The grabber.c code to get pixel data from a window is quite Windows specific. You'd need to rewrite this for other OSes. The app_on_message() that "fakes" keyboard and mouse input, only works on Windows as well.

Everything else, i.e. the encoder and WebSocket server, should work cross platform.

jaredly commented 9 years ago

Could you add something to the readme (or the GH summary line) saying this is Windows-only? That would be helpful.

phoboslab commented 9 years ago

@jaredly good idea. The summary now reads: A low latency, high framerate screen sharing server for Windows and client for browsers

jaredly commented 9 years ago

awesome thanks!

n1trux commented 7 years ago

Could the screen grabbing on Linux be possible with xlib? https://tronche.com/gui/x/xlib/

g4jc commented 7 years ago

I would also be interested in GNU/Linux support! This is a very nice program.

Xeddius commented 7 years ago

I would love GNU/Linux and Mac support! ffmpeg can already grab the screen natively on linux. So that solves the screen-grabbing issues. Which just leaves support for the input emulation, which I believe xdotool can solve! xdotool key alt+Tab would simulate pressing Alt+Tab! xdotool also supports emulating mouse movement as well as relative movement (required for some games).

alexsarmiento commented 7 years ago

WinPR (Windows Portable Runtime) by FreeRDP should help to solve this kind of portability issues.

thesauri commented 4 years ago

In case this is still relevant to anyone, I did a semi-complete port to Linux a couple of years ago that should still work: https://github.com/thesauri/jsmpeg-vnc-linux