Skip to content

[Feature] VNC Output for existing Window #4608

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

Closed
Int32Overflow opened this issue Sep 3, 2020 · 6 comments
Closed

[Feature] VNC Output for existing Window #4608

Int32Overflow opened this issue Sep 3, 2020 · 6 comments

Comments

@Int32Overflow
Copy link

Int32Overflow commented Sep 3, 2020

Currently it is only possible to select VNC or Linux FrameBuffer/DRM as output medium.
But it would be great, if you could connect to an existing window via VNC (e.g. for remote maintenance)

I've already looked at the source code, but this is a bit too much for my brain...
How do you see that? Is it possible?

@kekekeks
Copy link
Member

kekekeks commented Sep 3, 2020

It should be possible to take a screenshot of the window and trigger input events without changes to Avalonia code.

@Int32Overflow
Copy link
Author

@kekekeks How can I make a screenshot in Avalonia?

It could also be possible to write a wrapper for ILockedFrameBuffer, which copies the data into several Child-ILockedFrameBuffers and creates several identical outputs, or? What do you think?

@Int32Overflow
Copy link
Author

https://github.com/AvaloniaUI/Avalonia/blob/master/tests/Avalonia.RenderTests/TestBase.cs#L93

@kekekeks Ok thank you.
One question: The method "Save" will export it as png. How can I get the RGB-Data for the VNC Buffer?

@maxkatz6 maxkatz6 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2023
@pedroveiga99
Copy link

Picking up on this, @maxkatz6 is this still not planned? I think it is a bit limiting not being able to show in VNC and DRM/Framebuffer.

@maxkatz6
Copy link
Member

maxkatz6 commented Apr 7, 2025

@pedroveiga99 you can achieve that with Avalonia.Headless rendering. Making screenshots of each frame and imitating input.

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

4 participants