|
@@ -209,6 +209,7 @@ const app = new Vue({
|
|
|
|
|
|
// webRTC状态回调
|
|
// webRTC状态回调
|
|
statusCallBack(event) {
|
|
statusCallBack(event) {
|
|
|
|
+ console.log(event.val)
|
|
if (event.type !== 'StreamStates') {
|
|
if (event.type !== 'StreamStates') {
|
|
// console.log("链接的状态", event, event.val);
|
|
// console.log("链接的状态", event, event.val);
|
|
}
|
|
}
|
|
@@ -237,6 +238,7 @@ const app = new Vue({
|
|
break;
|
|
break;
|
|
case "rtcState":
|
|
case "rtcState":
|
|
// “connected”:rtc链接成功 “failed”:rtc链接失败 “closed”:rtc链接关闭 “disconnected”:rtc链接超时
|
|
// “connected”:rtc链接成功 “failed”:rtc链接失败 “closed”:rtc链接关闭 “disconnected”:rtc链接超时
|
|
|
|
+ console.log(event.val, 'rtc链接成功状态')
|
|
if (event.val === "connected") {
|
|
if (event.val === "connected") {
|
|
Toast.clear();
|
|
Toast.clear();
|
|
this.doConnectDirectives()
|
|
this.doConnectDirectives()
|