提交 a8bb1ca2 authored 作者: Anthony Minessale's avatar Anthony Minessale

fail call on stream error

上级 5201708e
This diff was suppressed by a .gitattributes entry.
...@@ -192,8 +192,8 @@ ...@@ -192,8 +192,8 @@
} }
function onStreamError(self, e) { 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) { function onStreamSuccess(self) {
......
...@@ -1490,7 +1490,7 @@ ...@@ -1490,7 +1490,7 @@
RTCcallbacks.onError = function(e) { RTCcallbacks.onError = function(e) {
console.error("ERROR:", e); console.error("ERROR:", e);
dialog.hangup(); dialog.hangup({cause: "Device or Permission Error"});
}; };
dialog.rtc = new $.FSRTC({ dialog.rtc = new $.FSRTC({
...@@ -1666,15 +1666,15 @@ ...@@ -1666,15 +1666,15 @@
if (params) { if (params) {
if (params.causeCode) { if (params.causeCode) {
dialog.causeCode = params.causeCode; dialog.causeCode = params.causeCode;
} }
if (params.cause) { 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); dialog.setState($.verto.enum.state.hangup);
} else if (dialog.state.val < $.verto.enum.state.destroy) { } else if (dialog.state.val < $.verto.enum.state.destroy) {
dialog.setState($.verto.enum.state.destroy); dialog.setState($.verto.enum.state.destroy);
...@@ -1927,7 +1927,8 @@ ...@@ -1927,7 +1927,8 @@
recovering: 1, recovering: 1,
ringing: 1, ringing: 1,
destroy: 1, destroy: 1,
answering: 1 answering: 1,
hangup: 1
}, },
requesting: { requesting: {
trying: 1, trying: 1,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论