Get user media (video and audio) with javascript in mobile app


I am trying to use a javascript sdk, from a certain provider, that at some point he says that i must get the media stream of the user, by using the standard javascript way:

navigator.mediaDevices.getUserMedia({audio:true, video_true})
.then(function(stream) {
  /* use the stream */
.catch(function(err) {
  /* handle the error */

The problem is that this does not work in mobile and i don't understand why. Even if i give all possible permissions to the app through the forge plugin "Android Permissions Plugin".

Can anyone can help me, even if it just to say that this is definetly not possible in mobile because off...

Best regards,

Rui Gomes

BTW, just tried with the "Phonegap Media Stream" cordova plugin and did not work also. 

Here is my simple wrapper of this plugin.