-
Notifications
You must be signed in to change notification settings - Fork 59
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
Use "Local Scaling" in the xpra-html5 client just like noVNC without resizing the remote screen in the server #75
Comments
Did you try Client Width in HTML5 client, just in case?
|
I am using the stable version now, I didn't see that in the client advanced settings... Do I need beta? |
Yes you need beta :) And yes, this can be extended as it was the first step to solve my issue immediately |
|
Yes, I got it to work by building the latest xpra-html5 git repository. Screen doesn't look blurred and looks pretty native, but it still changes the height on its own.
In xpra-html5, "Client Width should progress to a "Local Scaling" option that automatically downscales the screen to fit either the browser window height or the weight regardless of OS scales should exist. While the h264 and vp encoding is very attractive and can only be implemented with xpra, I should choose Guacamole with TurboVNC for my container to support audio for now, but these things are stuff that can benefit greatly. |
No, that's not needed. The server only responds to requests from the client.
It's not pulseaudio that's the problem, it's the browser's audio. |
With pulseaudio, audio stream stutters every 4-5 seconds even with gtk3 client… |
I am currently unable to test because Fedora 34 moved to pipewire (Xpra-org/xpra#3212), which broke everything. |
Loopback interface :(
|
Oh, which codec? |
Side note: Pipewire is very useful to create a remote desktop system mainly in Wayland systems because it can forward video as well as audio. |
Very related to #13 and #4 (comment)
@basilgello @totaam
There is a situation where setting a fixed resolution like VNC (remote screen not resized to the client window size) is required in Shadow or Desktop mode, as well as the Windowed mode.
In Windows laptops, most laptops on 1920 x 1080 for example have Scale and layout in the Display to 125%. We can see that the resolution resized in xpra-html5 is 1536 x 864, 80% of 1920 x 1080 in width and height. This results in sub-optimal resolution.
Other than this, there may be a requirement where something has to be rendered remotely in a higher resolution than the local display resolution.
A current pretty ugly workaround is to set zoom settings to 80% in the web browser or set Scale and layout across the whole OS to 100%. Or #4 (comment). Similar situation in Mac or Linux probably.
In noVNC (https://novnc.com/noVNC/vnc.html), if you see Settings (the gear wheel on the left toolbar) -> Scaling Mode, there are three options. It doesn't fix the Scaling issue automatically, but at least there is one option that allows to downscale the remote screen while keeping the resolution The first is "None", which uses a scroll bar to navigate through the larger remote screen. The second is the "Local Scaling" option. This scales the client window size by just using html5 to fit either the width or height, but doesn't attempt to resize anything remotely. Even if Scale and layout in the Display is set to 125%, it is able to obtain 1920 x 1080 in full screen with this option because the noVNC client scales locally on its own to fit either the width or height of the web page and counteracts the Windows settings. The third option is "Remote Resizing" which is what xpra-html5 does right now.
It would be very trivial if there was an option equivalent to setting a fixed geometry in the xpra server with Desktop mode (just like VNC), and we could toggle the "Local Scaling" option in the floating menu while connected to the remote display.
I hope this can be implemented very soon, perhaps by referring to the code from noVNC.
But another question, is xpra-html5 mature enough? I tested pulseaudio and it seems to have a few second lag. Probably related to #15 (comment). Should I try another solution like TurboVNC + Guacamole with pulseaudio for my use case until xpra-html5 matures?
The text was updated successfully, but these errors were encountered: