You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Naresh Reddy (Jira)" <ji...@apache.org> on 2020/12/16 11:56:00 UTC

[jira] [Commented] (GUACAMOLE-905) Audio input broken on Chrome

    [ https://issues.apache.org/jira/browse/GUACAMOLE-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250268#comment-17250268 ] 

Naresh Reddy commented on GUACAMOLE-905:
----------------------------------------

[~mjumper], I am new to Guacamole, and using the custom guacamole-client and updated to V1.2.0 . I am able to hear the audio/sound of the remote system. And microphone is not enabled . To enable the audio input included and set "enable-audio-input" to true. But browser is not prompting for the permission to allow the microphone.  To allow the microphone I included the following code on my custom js.



{color:#830091}navigator{color}.{color:#871094}mediaDevices{color}.{color:#7a7a43}getUserMedia{color}({ {color:#871094}audio{color}: {color:#0033b3}true{color}}).{color:#7a7a43}then{color}((stream) => {

{color:#8c8c8c}     var context = Guacamole.AudioContextFactory.getAudioContext();
{color}{color:#8c8c8c}    var process = context.createMediaStreamSource(stream);
{color}{color:#8c8c8c}    process.connect(context.destination);{color}

{color:#8c8c8c}   context.resume();{color}

}

After including the above code microphone is enabled by prompting but audio stream is not processed.
Can you help me out how can I implement it.
Note: I already included the AudioPlayer.js, Audio Recorder etc .. which is taken from the Guacamole client

> Audio input broken on Chrome
> ----------------------------
>
>                 Key: GUACAMOLE-905
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-905
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client, guacamole-common-js
>    Affects Versions: 1.0.0
>         Environment: Version 79.0.3945.66 (Official Build) beta (64-bit)
>            Reporter: Ian Reinhart Geiser
>            Assignee: Mike Jumper
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: remote.geekcentral.pub-1575989721472.log
>
>
> It looks like by default audio input cannot work on Chrome due to https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)