|
|
@@ -29,6 +29,7 @@
|
|
|
@property (nonatomic, copy) NSTimer *playerSecondTimer; // 定时器-控制按钮
|
|
|
@property (nonatomic, assign) RTCIceConnectionState linkState;
|
|
|
@property (nonatomic, assign) BOOL didHandleRotation;//第一次处理旋转
|
|
|
+@property (nonatomic, assign) BOOL needToReportWebRtcType;//上报打洞是否成功
|
|
|
@end
|
|
|
|
|
|
@implementation webRtcPlayerViewController
|
|
|
@@ -888,6 +889,12 @@
|
|
|
}
|
|
|
|
|
|
-(void)didGetStats:(NSString*)peerName stats:(RTC_OBJC_TYPE(RTCStatisticsReport) *)stats {
|
|
|
+
|
|
|
+ if(!_needToReportWebRtcType){
|
|
|
+ [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:NO withStats:stats];
|
|
|
+ _needToReportWebRtcType = YES;
|
|
|
+ }
|
|
|
+
|
|
|
NSString *selectedCandidatePairId = nil;
|
|
|
NSString *localCandidateId = nil;
|
|
|
NSString *remoteCandidateId = nil;
|