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"

Looking through the official webapp code I didn't find anything else
related to audio, but I'm not very skilled in angular of html5 so I might
have missed the point.

On Fri, Jul 19, 2019 at 4:26 PM Nick Couchman <[email protected]> wrote:

> On Fri, Jul 19, 2019 at 8:07 AM Enrico D'Angelo <[email protected]>
> wrote:
>
>> Hi Nick,
>>
>> thank you for your response.
>>
>> I tried with two clients, one is exactly this on
>> https://github.com/apache/guacamole-client/tree/master/doc/guacamole-example,
>> the other one uses guacamoli-lite.
>> The HTML file is basically the same for both, the only difference is the
>> tunnel creation.
>>
>>
> Looking at this example, I'm not sure it actually implements audio.  If
> you look at the code for the full client, particularly the ManagedClient.js
> file (
> https://github.com/apache/guacamole-client/blob/master/guacamole/src/main/webapp/app/client/types/ManagedClient.js)
> you'll see that there's a decent amount of setup that goes into the client,
> including several audio and video-specific parameters that get passed
> through the tunnel and on to guacd.  I've never played with the example, or
> attempted to write my own, but I suspect that the example is a very
> stripped-down version of the client that is not expected to support audio.
>
> -Nick
>
>>

-- 
[image: Kopjra Logo]

*Enrico D'Angelo*
Senior Software Engineer
+39 338 759 6369
[email protected]

*Kopjra Srl*
www.kopjra.com

Reply via email to