-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Minimal VNC server implementation #3959
base: dev
Are you sure you want to change the base?
Conversation
Thank you for the prototype 👍 It's interesting. I keep it in some branch for now. I'm not sure whether I want to add a VNC server directly in scrcpy (it is a "side" feature, and it typically does not provide the same performances). I think it might require scrcpy to be a bit more "modular", so that we can compile independent "plugins" (I'm not very happy with the V4L2 sink and its bunch of ifdefs too). But on the other side, I don't want it to be as modular as VLC for example (this would require too much decoupling which add many constraints, that in practice prevent to implement some "simple" features because the abstractions need to be "too general"). An alternative would be to expose a libscrcpy and use this to create a VNC server binary. These are just random thoughts, I keep the feature/need in mind. Thank you. |
This seems interesting. |
@rp1231 a VNC server is an implementation of the "remote-framebuffer" protocol, in this case, it allows you to display and interact with the android device from another computer, not necessarily the one that's running scrcpy (and not the one where the device is plugged in). @rom1v it's not the same performance, but it is pretty good, it feels "the same" when using a device for general purposes (did not try games / video). A libscrcpy would be pretty cool, and yeah, I did feel adding more ifdefs isn't really great. I'll think a bit for a way to refactor these. |
@DavidVentura Also sorry for clogging up the pr thread with questions...... |
@rp1231 I have a device that I need to access sporadically. I've left it connected to my server and can use VNC to access / interact with it via my laptop. |
@DavidVentura Ah ok, I see. |
@rom1v I had something like this in mind |
Thank you for sharing, this is a great suggestion. With VNC, it can be better expanded. |
Fixes #3473.
I wanted to have a direct VNC server sharing my scrcpy screen -- this is a work in progress towards that.
Code-quality wise it's pretty bad; a lot of copy-pasting the screen/display and just chucked the example libvnc eventloop thread, but it does function!