On Mon, Jul 22, 2019 at 4:26 AM Enrico D'Angelo <[email protected]>
wrote:

> Hi Nick,
>
> actually I modified the tutorial with those lines:
>
> let connectionString = "";
> Guacamole.AudioPlayer.getSupportedTypes().forEach(function (mimetype) {
>     connectionString += "&GUAC_AUDIO=" + encodeURIComponent(mimetype);
> });
> Guacamole.VideoPlayer.getSupportedTypes().forEach(function (mimetype) {
>     connectionString += "&GUAC_VIDEO=" + encodeURIComponent(mimetype);
> });
> connectionString = connectionString.slice(1);
>
> // Connect
> guac.connect(connectionString);
>
> that seems to be what the actual webapp does, the resulting
> connectionString is "GUAC_AUDIO=audio%2FL8&GUAC_AUDIO=audio%2FL16"
>

Are you running this against the official Guacamole Client back-end
(guacamole.war in Tomcat), or against the guacamole-lite back-end?  Looking
at the code for guacamole-lite, I'm not sure it implements audio support.
Based on the following lines in their code:

https://github.com/vadimpronin/guacamole-lite/blob/03d688a1f8633fca1f6620c955a0b31dff5f3a41/lib/GuacdClient.js#L79-L88

it looks to me like they just send empty audio, video, and image opcodes
during the handshake.  I think this works fine because there is a default
for the image opcode, even if you send an empty one there is a default
image type that is supported - however, the same is not true of audio and
video types.

-Nick

>

Reply via email to