getUserMedia fall callback
aykutyaman opened this issue · 0 comments
aykutyaman commented
I think getUserMedia fail callback must be called with error:
getUserMedia.call(navigator, options, function(stream) {
rtc.streams.push(stream);
rtc.initializedStreams++;
onSuccess(stream);
if (rtc.initializedStreams === rtc.numStreams) {
rtc.fire('ready');
}
}, function(error) { //here
alert("Could not connect stream.");
onFail(error); // and here
});