소스 검색

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