浏览代码

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

huangxiaodong 3 月之前
父节点
当前提交
b226b0a910
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      创维盒子/code/webRtc/webRtcManager/webRtcManager+StatisticsReport.m

+ 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];