getUserMedia returned value doesn't appear to be a promise
ptownsend opened this issue · comments
Using the plugin, the value returned from navigator.mediaDevices.getUserMedia
can be .then
'ed and .catched
'ed, but the value returned from at least the .catch
is not a promise, breaking promise chains.
See the example on my github.io page here: https://ptownsend.github.io/constraints-test.html
And specifically these lines: https://github.com/ptownsend/ptownsend.github.io/blob/master/js/main.js#L51-L58
For sure what is returned is a promise (IPromise ATL object):
Line 61 in 6be6ae3