jsmpeg-vnc icon indicating copy to clipboard operation
jsmpeg-vnc copied to clipboard

Linux or MAC OSX server

Open fbgranado opened this issue 8 years ago • 9 comments

Hi,

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

If I compile the source code it will work?

Thanks

fbgranado avatar Jul 28 '15 03:07 fbgranado

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.

phoboslab avatar Jul 28 '15 10:07 phoboslab

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

jaredly avatar Jul 29 '15 18:07 jaredly

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

phoboslab avatar Jul 29 '15 19:07 phoboslab

awesome thanks!

jaredly avatar Jul 29 '15 21:07 jaredly

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

n1trux avatar Nov 02 '16 08:11 n1trux

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

g4jc avatar Dec 14 '16 02:12 g4jc

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).

Xeddius avatar Jun 11 '17 09:06 Xeddius

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

alexsarmiento avatar Jun 15 '17 02:06 alexsarmiento

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

thesauri avatar May 05 '20 12:05 thesauri