[ 
https://issues.apache.org/jira/browse/CB-12957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Veenstra updated CB-12957:
-------------------------------
    Description: 
Within the browser source of the {{cordova--plugin-camera}} there is a 
{{CameraProxy.js}} file that calls the {{navigator.getUserMedia()}} with audio 
enabled. Why is the audio enabled for taking a picture? Wouldn't it be better 
to disable audio?

See: 
https://github.com/apache/cordova-plugin-camera/blob/master/src/browser/CameraProxy.js#L112

Change it to:
{code:javascript}
navigator.getUserMedia({video: true, audio: false}, successCallback, 
errorCallback);
{code}

  was:
Within the browser source of the {{cordova--plugin-camera}} there is a 
{{CameraProxy.js}} file that calls the {{navigator.getUserMedia()} with audio 
enabled. Why is the audio enabled for taking a picture? Wouldn't it be better 
to disable audio?

See: 
https://github.com/apache/cordova-plugin-camera/blob/master/src/browser/CameraProxy.js#L112

Change it to:
{code:javascript}
navigator.getUserMedia({video: true, audio: false}, successCallback, 
errorCallback);
{code}


> Do not use audio constraints in getUserMedia
> --------------------------------------------
>
>                 Key: CB-12957
>                 URL: https://issues.apache.org/jira/browse/CB-12957
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-camera
>         Environment: browsers
>            Reporter: Mark Veenstra
>
> Within the browser source of the {{cordova--plugin-camera}} there is a 
> {{CameraProxy.js}} file that calls the {{navigator.getUserMedia()}} with 
> audio enabled. Why is the audio enabled for taking a picture? Wouldn't it be 
> better to disable audio?
> See: 
> https://github.com/apache/cordova-plugin-camera/blob/master/src/browser/CameraProxy.js#L112
> Change it to:
> {code:javascript}
> navigator.getUserMedia({video: true, audio: false}, successCallback, 
> errorCallback);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to