fail call on stream error

This commit is contained in:
Anthony Minessale
2015-03-24 12:49:06 -05:00
parent 5201708e4b
commit a8bb1ca2f9
3 changed files with 12 additions and 11 deletions

View File

@@ -192,8 +192,8 @@
}
function onStreamError(self, e) {
console.log('There has been a problem retrieving the streams - did you allow access?', e);
console.log('There has been a problem retrieving the streams - did you allow access? Check Device Resolution', e);
doCallback(self, "onError", e);
}
function onStreamSuccess(self) {

View File

@@ -1490,7 +1490,7 @@
RTCcallbacks.onError = function(e) {
console.error("ERROR:", e);
dialog.hangup();
dialog.hangup({cause: "Device or Permission Error"});
};
dialog.rtc = new $.FSRTC({
@@ -1666,15 +1666,15 @@
if (params) {
if (params.causeCode) {
dialog.causeCode = params.causeCode;
dialog.causeCode = params.causeCode;
}
if (params.cause) {
dialog.cause = params.cause;
dialog.cause = params.cause;
}
}
if (dialog.state.val > $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) {
if (dialog.state.val >= $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) {
dialog.setState($.verto.enum.state.hangup);
} else if (dialog.state.val < $.verto.enum.state.destroy) {
dialog.setState($.verto.enum.state.destroy);
@@ -1927,7 +1927,8 @@
recovering: 1,
ringing: 1,
destroy: 1,
answering: 1
answering: 1,
hangup: 1
},
requesting: {
trying: 1,