@@ -154,4 +154,7 @@
/* PC扫码后*/
#define showTabbarNotification @"showTabbarNot"
+/* ping 完后重连*/
+#define didPingBestWebRtcIPRoomNotification @"didPingBestWebRtcIPRoomNot"
+
#endif /* Notification_h */
@@ -70,6 +70,8 @@
[HWDataManager setObjectWithKey:@"Const_best_webRtc_IPRoom" value:bestdict];
}
[[webRtcManager shareManager] relinkWebRtcFun];
+ [[NSNotificationCenter defaultCenter] postNotificationName:didPingBestWebRtcIPRoomNotification object:nil];
return;
@@ -959,6 +959,9 @@
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didInpuPwdOkFun) name:didInputPWDNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkStateChange:) name:NetWorkChangeNotification object:nil];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(relinkWebRtcFun) name:didPingBestWebRtcIPRoomNotification object:nil];
- (void)removeKVOObserverFun