Hello,
Sorry for not giving details, this is my JavaScript code for that part :
    var socket = new Guacamole.WebSocketTunnel("ws://" + window.location.host + 
"/ws/mini");
    var guac = new Guacamole.Client(socket);
    var display = document.getElementById("display");
    display.appendChild(guac.getDisplay().getElement());
    console.log(display)
what i'm seeing is the screenshot I sent.
What i'm trying to do is get the image of the remote desktop that guacd is 
connected to through a vnc server on my web browser. 

----- Mail original -----
De: "Nick Couchman" <vn...@apache.org>
À: "user" <user@guacamole.apache.org>
Envoyé: Mardi 4 Juillet 2023 14:52:24
Objet: Re: Guacamole display has no values

On Tue, Jul 4, 2023 at 3:55 AM Fatima Ezzahra Jaber
<fatima-ezzahra.ja...@grenoble-inp.org> wrote:
>
> Hello,
>
> I am using a django app to create my own guacamole web application, and using 
> websockets and the library pyguacamole for that. In my javascript side, I am 
> trying to get the guacamole client display "Guacamole.Client.getDisplay()" 
> but the values in it are the values by default. I don't understand why is 
> that happening although I can see that the instructions sent by guacd are 
> received by my web application, as well as there is a ping sent to the guacd. 
> In the logs of guacd I have user not responding.
>

I don't think you've provided quite enough detail, here, for anyone to
know what's going on or to really be able to help you. I think what
you're saying is that you're trying to get the display parameters
negotiated between your web application and guacd, and, instead of
seeing the correct values for the display, you're seeing default
values?

If you look at the JavaScript code for the Guacamole.Display module
(https://github.com/apache/guacamole-client/blob/master/guacamole-common-js/src/main/webapp/modules/Display.js),
you'll see that the default constructor only provides default
values - width is set to 0, height is set to 0, etc. If you're trying
to get the Display object configured for the actual browser you're
connecting from, you'll need to write your own code to detect the
browser size and set that value.

If you can provide more detail on what you've done and what you're
seeing, and maybe even a link to a code repository, you may get a
little more meaningful help.

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org
-- 
JABER Fatima Ezzahra 
2A SEOC Grenoble-INP Phelma 
Tél : +33 (0) 6 05 93 50 23
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

Reply via email to