Bläddra i källkod

1.打洞日志添加上报中转ip

huangxiaodong 3 månader sedan
förälder
incheckning
b226b0a910

+ 9 - 0
创维盒子/code/webRtc/webRtcManager/webRtcManager+StatisticsReport.m

@@ -192,6 +192,15 @@
         [paraDict setValue:privatePort forKey:@"privatePort"];
     }
     
+    if(ksharedAppDelegate.bestWebrtcServerModel){
+        
+        NSString * turnMsg = [[NSString alloc] initWithFormat:@"%@:%@",ksharedAppDelegate.bestWebrtcServerModel.turnIp,ksharedAppDelegate.bestWebrtcServerModel.turnPort];
+        [paraDict setValue:turnMsg forKey:@"coturnIp"];
+        
+        NSString * signalMsg = [[NSString alloc] initWithFormat:@"%@:%@",ksharedAppDelegate.bestWebrtcServerModel.signallingIp,ksharedAppDelegate.bestWebrtcServerModel.signallingPort];
+        [paraDict setValue:signalMsg forKey:@"signalingIp"];
+    }
+    
     [[netWorkManager shareInstance] CommonPostCallBackCode:webrctLogAdd Parameters:paraDict success:^(id  _Nonnull responseObject){
         
         SuperModel *curModel = [[SuperModel alloc] initWithDictionary:responseObject error:nil];