phonegap / phonegap-plugin-media-stream

Apache License 2.0
33 stars 21 forks source link

getUserMedia seems to require you passing in a facingMode #2

Closed macdonst closed 6 years ago

macdonst commented 6 years ago

I tried the following:

var constraints =  {
  video: true
};
navigator.mediaDevices.getUserMedia(constraints).then(function(mediastreams) {
    console.log(mediastreams);
});

and I received this error:

2017-06-07 23:14:13.905560-0400 HelloCordova[1134:994401] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSUnknownKeyException> [<__NSCFBoolean 0x1a9158110> valueForUndefinedKey:]: this class is not key value coding-compliant for the key facingMode.

I'm just capturing this so we don't lose track of it.