DoubangoTelecom / webrtc-plugin

WebRTC plugin for IE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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):

*pThePromise = CComVariant(this);