Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using VNC Client to control host #6

Open
Informatic opened this issue Jan 20, 2022 · 3 comments
Open

Using VNC Client to control host #6

Informatic opened this issue Jan 20, 2022 · 3 comments

Comments

@Informatic
Copy link
Contributor

Informatic commented Jan 20, 2022

Hey,

I've been thinking of adding VNC client to the webOS service (as an option) to control the host - what are your opinions on this? I can try implementing that. Of course this complicates the setup (ie. connection needs to be initiated from the TV side, after entering all the credentials there...), but besides that, security wise, is probably equal to our existing setup. (with added auth)

This has an advantage of being able to control more platforms, where magic4pc agent is not present (at least yet) - Linux, MacOS, Android...

There's some library for NodeJS already that seems fairly functional, after a quick glance (includes auth and pointer/key event support, which should probably be enough for us) - https://www.npmjs.com/package/rfb2

@Wouterdek
Copy link
Owner

I'm open to the idea, but have some reservations about VNC:

  • I like the wide compatibility VNC offers. That's the main advantage of a standard protocol, no need to develop our own server for each platform.
  • I don't like the idea of users having to manually enter ip addresses, passwords, ... through a TV remote. The current system aims to set these things up automatically as much as possible, and whatever needs to be done manually is done on the PC. If possible, I'd like to retain that. It seems "Listen-Mode" is what we are looking for, and is supported in multiple VNC packages[1] [2]. Not sure if it supported by the npm library though.
  • Unless I'm wrong, TCP is more or less required for VNC. I prefer UDP, as latency is preferable over strict reliability in this usecase (there is no point in re-transmitting cursor positions), and TCP introduces some unnecessary overhead. However, this is probably fine for a local connection though.

@Informatic
Copy link
Contributor Author

Informatic commented Jan 22, 2022 via email

@Wouterdek
Copy link
Owner

OK, sounds good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants