File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Source/LinkApp/Classes/Module/EquipmentPanel/Controller Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -942,7 +942,8 @@ - (void)starP2PServer {
942942 }
943943 }
944944 NSLog (@" _sys_xp2p_info xp2pValue : %@ " ,xp2pValue);
945- int errorcode = [[TIoTCoreXP2PBridge sharedInstance ] startAppWith: @" " sec_key: @" " pro_id: self .productId?:@" " dev_name: self .deviceName?:@" " xp2pinfo: xp2pValue];
945+ int errorcode = [[TIoTCoreXP2PBridge sharedInstance ] startAppWith: self .productId?:@" " dev_name: self .deviceName?:@" " ];
946+ [[TIoTCoreXP2PBridge sharedInstance ] setXp2pInfo: self .deviceName xp2pinfo: xp2pValue];
946947
947948 if (errorcode == XP2P_ERR_VERSION) {
948949 UIAlertController *alertC = [UIAlertController alertControllerWithTitle: @" APP SDK 版本与设备端 SDK 版本号不匹配,版本号需前两位保持一致" message: nil preferredStyle: (UIAlertControllerStyleAlert)];
@@ -4089,7 +4090,7 @@ - (void)refushXP2Pinfo {
40894090 }
40904091 NSLog (@" refushXP2Pinfo_sys_xp2p_info : %@ " ,xp2pValue);
40914092
4092- int errorcode = [[TIoTCoreXP2PBridge sharedInstance ] setXp2pInfo: self .deviceName?:@" " sec_id: nil sec_key: nil xp2pinfo: xp2pValue];
4093+ int errorcode = [[TIoTCoreXP2PBridge sharedInstance ] setXp2pInfo: self .deviceName?:@" " xp2pinfo: xp2pValue];
40934094
40944095 // 重新拉流/推流
40954096// [self refreshP2PPlayerAndStartCapture];
You can’t perform that action at this time.
0 commit comments