|
@@ -1041,6 +1041,8 @@
|
|
|
break;
|
|
|
case RTCDataChannelStateOpen:
|
|
|
{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:webRtcLinkStateChangeNotification object:nil];/*发送通知*/
|
|
|
+
|
|
|
//链接成功
|
|
|
[self handlAllMsgAfterDidLinkFun];
|
|
|
|
|
@@ -1055,6 +1057,8 @@
|
|
|
break;
|
|
|
case RTCDataChannelStateClosed:
|
|
|
{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:webRtcLinkStateChangeNotification object:nil];/*发送通知*/
|
|
|
+
|
|
|
//链接断开
|
|
|
[self relinkWebRtcFun];
|
|
|
}
|